Changeset 1542 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/16/02 10:40:39 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MPrint.cc
r1080 r1542 67 67 // must be overloaded. You can also set an option string to use 68 68 // when calling TObject::Print 69 // If you want that the MPrint instance is removed from the tasklist 70 // if the container to be printed is not found in the PreProcess, call: 71 // MPrint::EnableSkip(); 69 72 // 70 73 MPrint::MPrint(const char *obj, const char *option, … … 84 87 // must be overloaded. You can also set an option string to use 85 88 // when calling TObject::Print 89 // if the container to be printed is not found in the PreProcess, call: 90 // MPrint::EnableSkip(); 86 91 // 87 92 MPrint::MPrint(const TObject *obj, const char *option, … … 118 123 // If it couldn't get found stop Eventloop 119 124 // 120 *fLog << err << dbginf << fObjName << " not found... aborting." << endl; 121 return kFALSE; 125 *fLog << err << dbginf << fObjName << " not found... "; 126 if (TestBit(kSKIP)) 127 { 128 *fLog << "removing task from list." << endl; 129 return kSKIP; 130 } 131 else 132 { 133 *fLog << "aborting." << endl; 134 return kFALSE; 135 } 122 136 } 123 137 -
trunk/MagicSoft/Mars/mbase/MPrint.h
r1014 r1542 15 15 TString fOption; // Print option 16 16 17 enum { kSkip = BIT(14) }; 18 17 19 void Init(const char *name, const char *title); 18 20 … … 22 24 23 25 void SetOption(Option_t *option) { fOption = option; } 26 void EnableSkip(Bool_t skip=kTRUE) { skip ? SetBit(kSkip) : ResetBit(kSkip); } 24 27 25 28 Bool_t PreProcess(MParList *pList); -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1540 r1542 380 380 if (!noreset) 381 381 { 382 fParList->SetReadyToSave( );382 fParList->SetReadyToSave(kFALSE); 383 383 fParList->Reset(); 384 384 fParList->SetBit(MParList::kDoNotReset);
Note:
See TracChangeset
for help on using the changeset viewer.