Ignore:
Timestamp:
08/02/02 15:20:53 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r1476 r1477  
    783783// gui elements to a macro-file.
    784784//
    785 void MReadTree::SavePrimitive(ofstream &out, Option_t *o)
     785void MReadTree::StreamPrimitive(ofstream &out) const
    786786{
    787787    TString name = ToLower(fName);
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r1472 r1477  
    3636
    3737    virtual void SetReadyToSave(Bool_t flag=kTRUE);
     38    virtual void StreamPrimitive(ofstream &out) const;
    3839
    3940    enum { kIsOwner = BIT(14) };
     
    7273
    7374    virtual Bool_t Notify();
    74     virtual void   SavePrimitive(ofstream &out, Option_t *o="");
    7575
    7676    ClassDef(MReadTree, 1)      // Reads a tree from file(s)
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r1476 r1477  
    403403// gui elements to a macro-file.
    404404//
    405 void MWriteRootFile::SavePrimitive(ofstream &out, Option_t *o)
     405void MWriteRootFile::StreamPrimitive(ofstream &out) const
    406406{
    407407    out << "   MWriteRootFile " << ToLower(fName) << "(\"";
     
    416416    while ((entry=(MRootFileBranch*)Next()))
    417417    {
    418         out << "   " << ToLower(fName) << ".AddContainer(\"";
    419         out << entry->GetContName() << "\", \"";
    420         out << entry->GetName() << "\", \"";
     418        if  (entry->GetContainer())
     419        {
     420            entry->GetContainer()->SavePrimitive(out);
     421            out << "&" << ToLower(entry->GetContainer()->GetName());
     422        }
     423        else
     424            out << "\"" << entry->GetContName() << "\"";
     425
     426        out << ", \"" << entry->GetName() << "\", \"";
    421427        out << entry->GetTitle() << "\");" << endl;
    422428    }
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h

    r1472 r1477  
    1919    TBranch       *fBranch;     //!
    2020
    21     MParContainer *fContainer;  //!
     21    MParContainer *fContainer;
    2222    TString        fContName;
    2323
     
    7474    const char *GetFileName() const;
    7575
     76    void StreamPrimitive(ofstream &out) const;
     77
    7678public:
    7779    MWriteRootFile();
     
    9294
    9395    void Print(Option_t *t=NULL) const;
    94     void SavePrimitive(ofstream &out, Option_t *o="");
    9596
    9697    ClassDef(MWriteRootFile, 1) // Class to write one container to a root file
Note: See TracChangeset for help on using the changeset viewer.