132 while (
auto element = next())
133 if (
auto task =
dynamic_cast<TTask *
>(element))
151 while (
auto element = next())
152 if (
auto task =
dynamic_cast<TTask *
>(element))
192 printf(
" Nothing to abort: No task currently running\n");
226 while (
auto element = next())
227 if (
auto task =
dynamic_cast<TTask *
>(element))
247 printf(
" No task to continue\n");
315 while (
auto element = next()) {
318 auto task =
dynamic_cast<TTask *
>(element);
321 if (!task->IsActive())
323 if (task->fHasExecuted) {
327 if (task->fBreakin == 1) {
328 printf(
"Break at entry of task: %s\n",task->GetName());
336 std::cout<<
"Execute task:"<<task->GetName()<<
" : "<<task->GetTitle()<<std::endl;
340 task->fHasExecuted =
kTRUE;
341 task->ExecuteTasks(
option);
343 if (task->fBreakout == 1) {
344 printf(
"Break at exit of task: %s\n",task->GetName());
368 while (
auto obj = nextobj()) {
Using a TBrowser one can browse all ROOT objects.
void Browse(TBrowser *b) override
Browse this collection (called by TBrowser).
void Add(TObject *obj) override
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
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.