134 while (
auto element = next())
135 if (
auto task =
dynamic_cast<TTask *
>(element))
154 while (
auto element = next())
155 if (
auto task =
dynamic_cast<TTask *
>(element))
194 printf(
" Nothing to abort: No task currently running\n");
228 while (
auto element = next())
229 if (
auto task =
dynamic_cast<TTask *
>(element))
249 printf(
" No task to continue\n");
317 while (
auto element = next()) {
320 auto task =
dynamic_cast<TTask *
>(element);
323 if (!task->IsActive())
325 if (task->fHasExecuted) {
326 task->ExecuteTasks(option);
329 if (task->fBreakin == 1) {
330 printf(
"Break at entry of task: %s\n",task->GetName());
338 std::cout<<
"Execute task:"<<task->GetName()<<
" : "<<task->GetTitle()<<std::endl;
342 task->fHasExecuted =
kTRUE;
343 task->ExecuteTasks(option);
345 if (task->fBreakout == 1) {
346 printf(
"Break at exit of task: %s\n",task->GetName());
370 while (
auto obj = nextobj()) {
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
const char Option_t
Option string (const char).
Using a TBrowser one can browse all ROOT objects.
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.
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.