47 StartStopManager* StartStopManager::mt;
78 for ( std::vector<start_fun>::iterator it = startv.begin(); it != startv.end(); ++it)
79 this->res_collector( *it );
85 std::for_each(stopv.rbegin(), stopv.rend(), boost::function<void (stop_fun)>( &StartStopManager::caller ) );
88 StartStopManager::StartStopManager() : res(
true) {}
90 StartStopManager::~StartStopManager()
boost::function< void(void)> stop_fun
bool start()
Call all registered start functions.
static StartStopManager * Instance()
void startFunction(start_fun t)
Register a start function.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void stop()
Call all registered stop functions.
void stopFunction(stop_fun t)
Register a stop function.
This manager starts and stops all globally registered start/stop functions, without a particular orde...