Scope
|
#include <BaseController.h>
Classes | |
class | Impl |
Public Member Functions | |
virtual | ~BaseController () |
Impl * | Pimpl () const |
void | Start (const parameters::Scope &_parameters) |
void | StopAll () |
ControllerReturnStatus | WaitForAll (const int32_t &_wait_time=-1) |
Protected Member Functions | |
BaseController (Impl *const _pimpl) | |
Protected Attributes | |
Impl *const | pimpl |
Private Member Functions | |
BaseController (const BaseController &i) | |
BaseController | operator= (const BaseController &i) |
Base class for all controllers.
N_ACTIVES | the number of active threads |
STATIC_PIMPL | is the pimpl pointer static (if not we have to delete it in the destructor!), implementin the static pimpl (as a static local variable has to be done in derived classes, see e.g. ScopeController!) |
Definition at line 20 of file BaseController.h.
|
inlinevirtual |
Deletes the pimpl unless it points to a static local variable.
Definition at line 28 of file BaseController.h.
|
private |
disable copy
|
inlineexplicitprotected |
Constructor which can be used from derived classes to store their implementation class in BaseControllers pimpl.
Stores a pimpl pointer in BaseController::Impl* pimpl (we use this to store pointers to derived Impl classes in the BaseControllers pimpl).
[in] | _pimpl | a pimpl pointer |
Definition at line 50 of file BaseController.h.
|
private |
disable assignment
|
inline |
Definition at line 56 of file BaseController.h.
|
inline |
Start the controller, calls BaseController::Impl::Start.
Definition at line 61 of file BaseController.h.
|
inline |
Stop the controller, calls BaseController::Impl::StopAll.
Definition at line 66 of file BaseController.h.
|
inline |
Wait until the controller threads finished, calls BaseController::Impl::WaitForAll.
[in] | _wait_time | time to wait for finish in milliseconds |
Definition at line 72 of file BaseController.h.
|
protected |
the pointer to the implementation
Definition at line 42 of file BaseController.h.