135 while (
auto element = next())
136 if (
auto task =
dynamic_cast<TTask *
>(element))
155 while (
auto element = next())
156 if (
auto task =
dynamic_cast<TTask *
>(element))
195 printf(
" Nothing to abort: No task currently running\n");
229 while (
auto element = next())
230 if (
auto task =
dynamic_cast<TTask *
>(element))
250 printf(
" No task to continue\n");
318 while (
auto element = next()) {
321 auto task =
dynamic_cast<TTask *
>(element);
324 if (!task->IsActive())
326 if (task->fHasExecuted) {
330 if (task->fBreakin == 1) {
331 printf(
"Break at entry of task: %s\n",task->GetName());
339 std::cout<<
"Execute task:"<<task->GetName()<<
" : "<<task->GetTitle()<<std::endl;
343 task->fHasExecuted =
kTRUE;
344 task->ExecuteTasks(
option);
346 if (task->fBreakout == 1) {
347 printf(
"Break at exit of task: %s\n",task->GetName());
371 while (
auto obj = nextobj()) {
Using a TBrowser one can browse all ROOT objects.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
void Browse(TBrowser *b) override
Browse this collection (called by TBrowser).
void Clear(Option_t *option="") override
Remove all objects from the list.
void Add(TObject *obj) override
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
Regular expression class.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
const char * Data() const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
<div class="legacybox"><h2>Legacy Code</h2> TTask is a legacy interface: there will be no bug fixes n...
virtual void Exec(Option_t *option)
Dummy Execute.
TTask & operator=(const TTask &tt)
Assignment operator.
void ls(Option_t *option="*") const override
List the tree of tasks.
static TTask * fgBeginTask
static TTask * fgBreakPoint
virtual ~TTask()
Delete a task and its subtasks.
void Browse(TBrowser *b) override
Browse the list of tasks.
virtual void CleanTasks()
Reset tasks state: breakpoints and execute flags also invokes the Clear function of each task to clea...
virtual void ExecuteTasks(Option_t *option)
Execute all the subtasks of a task.
TTask()
Default constructor invoked when reading a TTask object from a file.
virtual void Abort()
Abort current tree of tasks.
virtual void Add(TTask *task)
Add TTask to this.
void Clear(Option_t *option="") override
Recursively call the Clear function of this task and its subtasks.
virtual void Continue()
Resume execution at the current break point.
virtual void ExecuteTask(Option_t *option="0")
Execute main task and its subtasks.