DUNE: Uniform Navigational Environment  2016.05.0
DUNE::Tasks::Manager Class Reference

Public Member Functions

 Manager (Context &ctx)
 
 ~Manager (void)
 
void start (void)
 
void start (const std::string &name)
 
void stop (const std::string &name)
 
void join (const std::string &name)
 
void writeParamsXML (std::ostream &os) const
 
std::map< std::string, Task * >
::iterator 
begin (void)
 
std::map< std::string, Task * >
::iterator 
end (void)
 

Static Public Member Functions

static std::string getTaskName (const std::string &str)
 

Constructor & Destructor Documentation

DUNE::Tasks::Manager::~Manager ( void  )

Destructor.

References join(), and stop().

Member Function Documentation

std::map<std::string, Task*>::iterator DUNE::Tasks::Manager::begin ( void  )
inline
std::map<std::string, Task*>::iterator DUNE::Tasks::Manager::end ( void  )
inline
std::string DUNE::Tasks::Manager::getTaskName ( const std::string &  str)
static

Retrieve the task name from a configuration section.

Parameters
strconfiguration section string.
Returns
task name.

References DUNE::Utils::String::split().

Referenced by Manager().

void DUNE::Tasks::Manager::join ( const std::string &  name)

Referenced by ~Manager().

void DUNE::Tasks::Manager::start ( void  )

Start all tasks.

Referenced by DUNE::Daemon::onResourceInitialization().

void DUNE::Tasks::Manager::start ( const std::string &  name)

Start a task with a given name.

Parameters
nametask name.

References DUNE::Tasks::Task::err(), DUNE::Tasks::Task::inf(), and DUNE::Concurrency::Runnable::start().

void DUNE::Tasks::Manager::stop ( const std::string &  name)

Stop a task with a given name.

Parameters
nametask name.
Returns
true if task was stopped, false otherwise.

Referenced by ~Manager().

void DUNE::Tasks::Manager::writeParamsXML ( std::ostream &  os) const
Collaboration diagram for DUNE::Tasks::Manager:
Collaboration graph