Changeset 1477 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 08/02/02 15:20:53 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r1476 r1477 783 783 // gui elements to a macro-file. 784 784 // 785 void MReadTree::S avePrimitive(ofstream &out, Option_t *o)785 void MReadTree::StreamPrimitive(ofstream &out) const 786 786 { 787 787 TString name = ToLower(fName); -
trunk/MagicSoft/Mars/mfileio/MReadTree.h
r1472 r1477 36 36 37 37 virtual void SetReadyToSave(Bool_t flag=kTRUE); 38 virtual void StreamPrimitive(ofstream &out) const; 38 39 39 40 enum { kIsOwner = BIT(14) }; … … 72 73 73 74 virtual Bool_t Notify(); 74 virtual void SavePrimitive(ofstream &out, Option_t *o="");75 75 76 76 ClassDef(MReadTree, 1) // Reads a tree from file(s) -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r1476 r1477 403 403 // gui elements to a macro-file. 404 404 // 405 void MWriteRootFile::S avePrimitive(ofstream &out, Option_t *o)405 void MWriteRootFile::StreamPrimitive(ofstream &out) const 406 406 { 407 407 out << " MWriteRootFile " << ToLower(fName) << "(\""; … … 416 416 while ((entry=(MRootFileBranch*)Next())) 417 417 { 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() << "\", \""; 421 427 out << entry->GetTitle() << "\");" << endl; 422 428 } -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r1472 r1477 19 19 TBranch *fBranch; //! 20 20 21 MParContainer *fContainer; //!21 MParContainer *fContainer; 22 22 TString fContName; 23 23 … … 74 74 const char *GetFileName() const; 75 75 76 void StreamPrimitive(ofstream &out) const; 77 76 78 public: 77 79 MWriteRootFile(); … … 92 94 93 95 void Print(Option_t *t=NULL) const; 94 void SavePrimitive(ofstream &out, Option_t *o="");95 96 96 97 ClassDef(MWriteRootFile, 1) // Class to write one container to a root file
Note:
See TracChangeset
for help on using the changeset viewer.