Changeset 961 for trunk/MagicSoft/Mars/mbase/MTask.cc
- Timestamp:
- 10/05/01 14:39:20 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTask.cc
r858 r961 43 43 // As an argument this function gets a pointer to the // 44 44 // parameter list. You can stop the execution by // 45 // kFALSE instread of kTRUE. // 45 // returning kFALSE instead of kTRUE. If an error // 46 // occured and you return kFALSE make sure, that // 47 // any action is closed correctly and all newly // 48 // created object are deleted. The PostProcess in // 49 // such a case won't be executed by the Tasklist or // 50 // Eventloop. // 46 51 // // 47 // - Process(): executed for each event in the eventloop. Do i n//48 // one task after the other (as the occur in the//49 // tasklist) the action of one task. Only the tasks//50 // w ith a Stream ID which matches the actual ID of the//51 // task list are executed. A task can return kFALSE//52 // to stop the execuition of the pending taks in a//53 // list or kCONTINUE to skip the pending tasks.//52 // - Process(): executed for each event in the eventloop. Do it // 53 // one task after the other (as they occur in the // 54 // tasklist). Only the tasks with a Stream ID // 55 // which matches the actual ID of the tasklist // 56 // are executed. A task can return kFALSE to // 57 // stop the execuition of the tasklist or // 58 // kCONTINUE to skip the pending tasks. // 54 59 // // 55 60 // - PostProcess(): executed after the eventloop. Here you can close // 56 61 // output files, start display of the run parameter, // 57 // etc. // 62 // etc. PostProcess should be executed only if // 63 // PreProcess was successfull (returned kTRUE) // 58 64 // // 59 65 ///////////////////////////////////////////////////////////////////////////// … … 72 78 // the virtual implementation returns kTRUE 73 79 // 74 Bool_t MTask::PreProcess( MParList *pList)80 Bool_t MTask::PreProcess(MParList *pList) 75 81 { 76 82 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.