Changeset 1471 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/01/02 12:31:56 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1191 r1471 54 54 #include "MEvtLoop.h" 55 55 56 #include <fstream.h> // ofstream, SavePrimitive 56 57 #include <iostream.h> 57 58 … … 274 275 } 275 276 277 void MEvtLoop::SavePrimitive(ofstream &out, Option_t *) 278 { 279 fParList->SavePrimitive(out); 280 281 out << " MEvtLoop evtloop;" << endl; 282 out << " evtloop.SetParList(&" << ToLower(fParList->GetName()) << ")" << endl; 283 out << " if (!evtloop.Eventloop())" << endl; 284 out << " return;" << endl; 285 } -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r1268 r1471 46 46 Bool_t Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList"); 47 47 48 void SavePrimitive(ofstream &out, Option_t *o=""); 49 48 50 ClassDef(MEvtLoop, 0) // Class to execute the tasks in a tasklist 49 51 }; -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1299 r1471 346 346 return call; 347 347 } 348 349 void MParContainer::SavePrimitive(ofstream &out, Option_t *o="") 350 { 351 out << " // SavePrimitive not overloaded... using default." << endl; 352 out << " " << ClassName() << " " << ToLower(fName) << "(\""; 353 out << fName << "\", \"" << fTitle << "\");" << endl; 354 } 355 -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r1348 r1471 61 61 virtual void Print(Option_t *option="") const; 62 62 virtual Int_t Sizeof() const; 63 virtual void SavePrimitive(ofstream &out, Option_t *o=""); 63 64 64 65 virtual void SetLogStream(MLog *lg) { fLog = lg; } -
trunk/MagicSoft/Mars/mbase/MParList.cc
r1337 r1471 41 41 #include "MParList.h" 42 42 43 #include <fstream.h> // ofstream, SavePrimitive 44 43 45 #include <TNamed.h> 44 46 #include <TClass.h> … … 657 659 return list; 658 660 } 661 662 void MParList::SavePrimitive(ofstream &out, Option_t *o="") 663 { 664 out << " MParList " << ToLower(fName) << ";" << endl << endl; 665 666 TIter Next(fContainer); 667 668 TObject *cont = NULL; 669 while ((cont=Next())) 670 { 671 cont->SavePrimitive(out, ""); 672 out << " " << ToLower(fName) << ".AddToList(&"; 673 out << ToLower(cont->GetName()) << ");" << endl << endl; 674 } 675 } -
trunk/MagicSoft/Mars/mbase/MParList.h
r1337 r1471 78 78 79 79 void Print(Option_t *t = NULL) const; 80 void SavePrimitive(ofstream &out, Option_t *o=""); 80 81 81 82 ClassDef(MParList, 0) // list of parameter containers (MParContainer) -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1337 r1471 57 57 #include "MTaskList.h" 58 58 59 #include <fstream.h> // ofstream, SavePrimitive 60 59 61 #include <TClass.h> 60 62 #include <TBaseClass.h> … … 512 514 } 513 515 516 517 void MTaskList::SavePrimitive(ofstream &out, Option_t *o="") 518 { 519 out << " MTaskList " << ToLower(fName) << ";" << endl << endl; 520 521 TIter Next(fTasks); 522 523 TObject *cont = NULL; 524 while ((cont=Next())) 525 { 526 cont->SavePrimitive(out, ""); 527 out << " " << ToLower(fName) << ".AddToList(&"; 528 out << ToLower(cont->GetName()) << ");" << endl << endl; 529 } 530 } -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r1283 r1471 56 56 void SetOwner(Bool_t enable=kTRUE); 57 57 58 void SavePrimitive(ofstream &out, Option_t *o=""); 59 58 60 const TList *GetList() const { return fTasks; } 59 61
Note:
See TracChangeset
for help on using the changeset viewer.