Changeset 1076 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 11/14/01 10:03:20 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 6 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r1035 r1076 31 31 #pragma link C++ class MInputStreamID+; 32 32 33 #pragma link C++ class MGTask+; 34 #pragma link C++ class MGList+; 35 #pragma link C++ class MGGroupFrame+; 36 33 37 #pragma link C++ class MClone+; 34 38 #pragma link C++ class MPrint+; -
trunk/MagicSoft/Mars/mbase/MInputStreamID.cc
r1003 r1076 47 47 fTitle = title; 48 48 49 fStreamId = "All"; //new char[4]; 50 //strcpy(fStreamId, "All"); 49 fStreamId = "All"; 51 50 } 52 51 -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1030 r1076 137 137 { 138 138 TROOT::IndentLevel(); 139 *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << " :"139 *fLog <<"OBJ: " << GetDescriptor() << ": " << GetTitle() << ", " 140 140 << Int_t(TestBit(kCanDelete)) << endl; 141 141 } … … 147 147 void MParContainer::Print(Option_t *) const 148 148 { 149 *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << endl;149 *fLog <<"OBJ: " << GetDescriptor() << ": " << GetTitle() << endl; 150 150 } 151 151 … … 199 199 { 200 200 *fLog << "To use the the ascii input of " << GetName(); 201 *fLog << " you have to overload " << GetName() << "::AsciiRead." << endl;201 *fLog << " you have to overload " << ClassName() << "::AsciiRead." << endl; 202 202 } 203 203 … … 205 205 { 206 206 *fLog << "To use the the ascii output of " << GetName(); 207 *fLog << " you have to overload " << GetName() << "::AsciiWrite." << endl;208 } 207 *fLog << " you have to overload " << ClassName() << "::AsciiWrite." << endl; 208 } -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r1030 r1076 100 100 virtual ~MParContainer() {} 101 101 102 virtual const char *GetDescriptor() const { return Form("%s [%s]", GetName(), ClassName()); } 103 102 104 virtual TObject *Clone(const char *newname="") const; 103 105 virtual Int_t Compare(const TObject *obj) const; … … 107 109 virtual const char *GetName() const { return fName.Data(); } 108 110 virtual const char *GetTitle() const { return fTitle.Data(); } 109 virtual ULong_t Hash() 111 virtual ULong_t Hash() const { return fName.Hash(); } 110 112 virtual Bool_t IsSortable() const { return kTRUE; } 111 113 -
trunk/MagicSoft/Mars/mbase/MParList.cc
r1027 r1076 227 227 // check if the object is in the list or not 228 228 // 229 TObject *MParList::FindObject( TObject *obj) const229 TObject *MParList::FindObject(const TObject *obj) const 230 230 { 231 231 return fContainer->FindObject(obj); -
trunk/MagicSoft/Mars/mbase/MParList.h
r1030 r1076 44 44 45 45 TObject *FindObject(const char *name) const; 46 TObject *FindObject( TObject *obj) const;46 TObject *FindObject(const TObject *obj) const; 47 47 MParContainer *FindCreateObj(const char *classname, const char *objname=NULL); 48 48 -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1027 r1076 67 67 #include "MTask.h" 68 68 69 #include <TMethod.h> 69 70 #include <TOrdCollection.h> 70 71 … … 73 74 74 75 #include "MFilter.h" 76 #include "MGGroupFrame.h" 75 77 76 78 ClassImp(MTask); … … 176 178 177 179 fIsPreprocessed = kFALSE; 180 178 181 return PostProcess(); 179 182 } … … 224 227 void MTask::PrintStatistics(const Int_t lvl) const 225 228 { 226 *fLog << setw(lvl) << " " << Get Name() << " [";227 *fLog << ClassName() << "] \t" << fNumExecutions;228 *fLog << endl; 229 } 229 *fLog << setw(lvl) << " " << GetDescriptor() << "\t"; 230 *fLog << dec << fNumExecutions << endl; 231 } 232 -
trunk/MagicSoft/Mars/mbase/MTask.h
r1020 r1076 73 73 UInt_t GetNumExecutions() { return fNumExecutions; } 74 74 75 Bool_t CallPreProcess(MParList *plist);76 Bool_t CallProcess();77 Bool_t CallPostProcess();75 virtual Bool_t CallPreProcess(MParList *plist); 76 virtual Bool_t CallProcess(); 77 virtual Bool_t CallPostProcess(); 78 78 79 79 const TOrdCollection *GetListOfBranches() const { return fListOfBranches; } 80 80 81 ClassDef(MTask, 0) 81 ClassDef(MTask, 0) //Abstract base class for a task 82 82 }; 83 83 -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1027 r1076 197 197 // check if the object is in the list or not 198 198 // 199 TObject *MTaskList::FindObject( TObject *obj) const199 TObject *MTaskList::FindObject(const TObject *obj) const 200 200 { 201 201 return fTasks->FindObject(obj); … … 360 360 *fLog << "Execution Statistics: " << endl; 361 361 *fLog << "---------------------" << endl; 362 *fLog << Get Name() << " [" << ClassName() << "]"<< endl;362 *fLog << GetDescriptor() << endl; 363 363 } 364 364 else 365 365 { 366 *fLog << setw(lvl) << " " << GetName() << " ["; 367 *fLog << ClassName() << "]" << endl; 366 *fLog << setw(lvl) << " " << GetDescriptor() << endl; 368 367 } 369 368 … … 380 379 void MTaskList::Print(Option_t *t) const 381 380 { 382 *fLog << "TaskList: " << GetName() << " <" << GetTitle() << ">" << endl;381 *fLog << GetDescriptor() << " <" << GetTitle() << ">" << endl; 383 382 384 383 fTasks->Print(); -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r1014 r1076 40 40 41 41 TObject *FindObject(const char *name) const; 42 TObject *FindObject( TObject *obj) const;42 TObject *FindObject(const TObject *obj) const; 43 43 44 44 Bool_t PreProcess(MParList *pList); -
trunk/MagicSoft/Mars/mbase/MTime.cc
r986 r1076 43 43 fLog->setf(ios::showbase); 44 44 *fLog << "MTime Information: " << hex 45 << " " << setfill('0') << setw(2) << fTimeStamp[0]46 << " " << setfill('0') << setw(2) << fTimeStamp[1] << endl << endl;45 << " " << setfill('0') << setw(2) << fTimeStamp[0] 46 << " " << setfill('0') << setw(2) << fTimeStamp[1] << endl << endl; 47 47 } 48 48 -
trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc
r1028 r1076 116 116 void MWriteRootFile::Print(Option_t *) const 117 117 { 118 cout << "File: " << GetFileName() << endl;118 cout << "File: " << GetFileName() << dec << endl; 119 119 cout << "--------------------------------------------------" << endl; 120 120 -
trunk/MagicSoft/Mars/mbase/Makefile
r1052 r1076 44 44 MWriteAsciiFile.cc \ 45 45 MWriteRootFile.cc \ 46 MGList.cc \ 47 MGTask.cc \ 48 MGGroupFrame.cc \ 46 49 MArray.cc \ 47 50 MArrayB.cc \
Note:
See TracChangeset
for help on using the changeset viewer.