Changeset 7184 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 07/13/05 15:34:23 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc
r7178 r7184 75 75 // 76 76 MTaskInteractive::MTaskInteractive(const char *name, const char *title) : 77 fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL) 77 fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL), fReInit(NULL) 78 78 { 79 79 fName = name ? name : "MTaskInteractive"; -
trunk/MagicSoft/Mars/mbase/MTaskInteractive.h
r7178 r7184 22 22 Int_t Process() { if (fCall[1]) return Return(1); return fProcess ? (*fProcess)() : kTRUE; } 23 23 Int_t PostProcess() { if (fCall[2]) return Return(2); return fPostProcess ? (*fPostProcess)() : kTRUE; } 24 Bool_t ReInit(MParList *list) { if (fCall[3]) return Return(3, &list); return f PostProcess ? (*fPostProcess)(): kTRUE; }24 Bool_t ReInit(MParList *list) { if (fCall[3]) return Return(3, &list); return fReInit ? (*fReInit)(list) : kTRUE; } 25 25 26 26 Int_t Return(Int_t no, void *param=NULL); … … 33 33 34 34 // This is to be used in compiled code 35 void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func;Free(0); }36 void SetProcess(Int_t (*func)()) { fProcess = func;Free(1); }35 void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func; Free(0); } 36 void SetProcess(Int_t (*func)()) { fProcess = func; Free(1); } 37 37 void SetPostProcess(Int_t (*func)()) { fPostProcess = func; Free(2); } 38 void SetReInit(Bool_t (*func)(MParList *list)) { fReInit = func;Free(3); }38 void SetReInit(Bool_t (*func)(MParList *list)) { fReInit = func; Free(3); } 39 39 40 40 // This is for usage in CINT
Note:
See TracChangeset
for help on using the changeset viewer.