Changeset 1540 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/15/02 17:02:46 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r1492 r1540 35 35 #pragma link C++ class MClone+; 36 36 #pragma link C++ class MPrint+; 37 #pragma link C++ class MContinue+; 37 38 38 39 #pragma link C++ class MArray; -
trunk/MagicSoft/Mars/mbase/MClone.h
r1014 r1540 30 30 Bool_t Process(); 31 31 32 TObject *GetClone() const { return fClone; } 32 TObject *GetClone() const { return fClone; } 33 const TObject *GetObject() const { return fObject; } 33 34 34 35 void Clear(Option_t *opt=NULL); -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1528 r1540 86 86 #ifdef __MARS__ 87 87 #include "MReadTree.h" // for setting progress bar 88 #include "MProgressBar.h" // MProgressBar::GetBar 88 89 #endif 89 90 … … 126 127 enable ? SetBit(kIsOwner) : ResetBit(kIsOwner); 127 128 } 129 130 #ifdef __MARS__ 131 // -------------------------------------------------------------------------- 132 // 133 // Specify an existing MProgressBar object. It will display the progress 134 // graphically. This will make thing about 1-2% slower. 135 // 136 void MEvtLoop::SetProgressBar(MProgressBar *bar) 137 { 138 fProgress = bar->GetBar(); 139 } 140 #endif 128 141 129 142 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r1526 r1540 17 17 class MTaskList; 18 18 class TGProgressBar; 19 #ifdef __MARS__ 20 class MProgressBar; 21 #endif 19 22 20 23 class MEvtLoop : public MParContainer … … 44 47 45 48 void SetProgressBar(TGProgressBar *bar) { fProgress = bar; } 49 #ifdef __MARS__ 50 void SetProgressBar(MProgressBar *bar); 51 #endif 46 52 47 53 Bool_t PreProcess(const char *tlist="MTaskList"); -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1501 r1540 252 252 // -------------------------------------------------------------------------- 253 253 // 254 // Prints the number of times this task has been processed. 255 // For convinience the lvl argument results in a number of spaces at the 256 // beginning of the line. So that the structur of a tasklist can be 257 // identified. 254 // Prints the number of times all the tasks in the list has been. 255 // For convinience the lvl argument results in a number of spaces at the 256 // beginning of the line. So that the structur of a tasklist can be 257 // identified. If a Tasklist or task has filter applied the name of the 258 // filter is printer in <>-brackets behind the number of executions. 259 // Use MTaskList::PrintStatistics without an argument. 258 260 // 259 261 void MTask::PrintStatistics(const Int_t lvl, Bool_t title) const … … 261 263 *fLog << all << setw(lvl) << " " << GetDescriptor() << "\t"; 262 264 *fLog << dec << fNumExecutions; 265 if (fFilter) 266 *fLog << " <" << fFilter->GetName() << ">"; 263 267 if (title) 264 268 *fLog << "\t" << fTitle; … … 280 284 /* 281 285 If we don't stream filter which are not in the task list itself 282 (which means: alr teady streamed) we may be able to use the283 primitive streameras some kind of validity check for the macros286 (which means: already streamed) we may be able to use 287 SavePrimitive as some kind of validity check for the macros 284 288 285 289 fFilter->SavePrimitive(out); -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1527 r1540 66 66 #include "MLogManip.h" 67 67 68 #include "MFilter.h" 68 69 #include "MParList.h" 69 70 #include "MInputStreamID.h" … … 71 72 ClassImp(MTaskList); 72 73 73 static const TString gsDefName = "MTaskList"; 74 static const TString gsDefTitle = "A list for tasks to be executed"; 74 const TString MTaskList::gsDefName = "MTaskList"; 75 const TString MTaskList::gsDefTitle = "A list for tasks to be executed"; 76 75 77 // -------------------------------------------------------------------------- 76 78 // … … 492 494 // For convinience the lvl argument results in a number of spaces at the 493 495 // beginning of the line. So that the structur of a tasklist can be 494 // identified. Use MTaskList::PrintStatistics without an argument. 496 // identified. If a Tasklist or task has filter applied the name of the 497 // filter is printer in <>-brackets behind the number of executions. 498 // Use MTaskList::PrintStatistics without an argument. 495 499 // 496 500 void MTaskList::PrintStatistics(const Int_t lvl, Bool_t title) const … … 502 506 *fLog << "---------------------" << endl; 503 507 *fLog << GetDescriptor(); 508 if (GetFilter()) 509 *fLog << " <" << GetFilter()->GetName() << ">"; 504 510 if (title) 505 511 *fLog << "\t" << fTitle; -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r1501 r1540 21 21 { 22 22 private: 23 TList *fTasks; // Container for the ordered list of different tasks 24 TList fTasksProcess; //! 25 MParList *fParList; //! 23 static const TString gsDefName; // default name 24 static const TString gsDefTitle; // default title 26 25 27 UInt_t *fCntContinue; //! 28 UInt_t *fCntTrue; //! 26 TList *fTasks; // Container for the ordered list of different tasks 27 TList fTasksProcess; //! Task which overload the Process function 28 MParList *fParList; //! The parameter list given in PreProcess 29 29 30 30 enum { kIsOwner = BIT(14) }; -
trunk/MagicSoft/Mars/mbase/Makefile
r1528 r1540 20 20 # @endcode 21 21 22 INCLUDES = -I. -I../mraw -I../MRawFormat -I../mmc -I../mfileio 22 INCLUDES = -I. -I../mraw -I../MRawFormat -I../mmc -I../mfileio -I../mmain 23 23 24 24 # @code … … 48 48 MTime.cc \ 49 49 MClone.cc \ 50 MContinue.cc \ 50 51 MPrint.cc \ 51 52 MLogManip.cc
Note:
See TracChangeset
for help on using the changeset viewer.