Manages tasks. This is a Singleton.
More...
#include <task.h>
|
|
typedef Tasks::const_iterator | TasksCIter |
| |
|
typedef Tasks::iterator | TasksIter |
| |
|
|
unsigned int | ntask () const |
| | Number of tasks.
|
| |
|
TasksCIter | first () const |
| | returns iterator to the first task
|
| |
|
TasksCIter | plast () const |
| | returns iterator to past the last task
|
| |
|
LibraryTask & | task (unsigned int i) |
| | i-th tasks
|
| |
|
void | add (const std::string &task_label) |
| | Adds a new task. Do nothing if the task exists already.
|
| |
| bool | exists (const std::string &task_label) const |
| |
|
TasksCIter | find (const std::string &task_label) const |
| | Find the task by name and return the iterator pointing to it. Throws ProgrammingError, if the task is not found.
|
| |
|
void | current (const std::string &task_label) |
| | Makes this task current (must have been added already)
|
| |
|
LibraryTask & | current () |
| | Returns the current task.
|
| |
Manages tasks. This is a Singleton.
◆ exists()
| bool LibraryTaskManager::exists |
( |
const std::string & |
task_label | ) |
const |
- Returns
- true if task
task_label exists
The documentation for this class was generated from the following files: