TwiceAsNice
2019-02-18
|
#include <Basdard.h>
Static Public Member Functions | |
static void | destroy () |
remove the stack of the workers and devices. Since the maps are cleared, the workers and devices are destructed (in the C++ sense) More... | |
static void | loadAllDevices (const Nice::JointPtr &_config) |
Add all configured devices to the list of devices. More... | |
static void | addDevice (const std::string &_name, const DevicePtr &_device) |
Add a single device to the list of devices. More... | |
static DeviceMap & | devices () |
static Device * | rawdevice (const std::string &_n) |
search a device by name More... | |
template<typename DeviceType > | |
static IceUtil::Handle< DeviceType > | device (const std::string &_n) |
search a device by name More... | |
static void | loadAllServices (const Nice::JointPtr &_config) |
load services recognizing NAME and STATE in the configuration. More... | |
static void | addWorker (const std::string &_name, const ServiceWorkerPtr &_worker) |
Add a worker to the list of known workers. More... | |
static void | startAllWorker () |
start sequentially all workers known in the list. More... | |
static WorkerList & | worker () |
static WorkerMap & | workers () |
static ServiceWorker * | rawworker (const char *_n) |
search a worker by name More... | |
template<typename WorkerType > | |
static IceUtil::Handle< WorkerType > | worker (const std::string &_n) |
search a worker by name More... | |
template<typename WorkerTypeIf > | |
static IceUtil::Handle< WorkerTypeIf > | service (const std::string &_n) |
create a worker by name More... | |
static void | destroy () |
static void | loadAllDevices (const Nice::JointPtr &_config) |
static void | addDevice (const std::string &_name, const DevicePtr &_device) |
static DeviceMap & | devices () |
static Device * | rawdevice (const std::string &_n) |
search a device by name More... | |
template<typename DeviceType > | |
static IceUtil::Handle< DeviceType > | device (const std::string &_n) |
search a device by name More... | |
static void | loadAllServices (const Nice::JointPtr &_config) |
static void | addWorker (const std::string &_name, const ServiceWorkerPtr &_worker) |
static void | startAllWorker () |
static WorkerList & | worker () |
static WorkerMap & | workers () |
static ServiceWorker * | rawworker (const char *_n) |
search a worker by name More... | |
template<typename WorkerType > | |
static IceUtil::Handle< WorkerType > | worker (const std::string &_n) |
search a worker by name More... | |
template<typename WorkerTypeIf > | |
static IceUtil::Handle< WorkerTypeIf > | service (const std::string &_n) |
create a worker by name More... | |
Static Protected Attributes | |
static WorkerMap | s_workers |
The map that associates names with workers. More... | |
static WorkerList | s_worker |
The vector of workers. More... | |
static DeviceMap | s_devices |
The loaded devices mapped by name. More... | |
Add a single device to the list of devices.
_name | The name of the device |
_device | The device handler to be added. |
An | exception is thrown if a device with that name already exists in the list. |
|
static |
|
static |
Add a worker to the list of known workers.
_name | The associated worker name |
_worker | The worker itself. |
|
static |
|
static |
remove the stack of the workers and devices. Since the maps are cleared, the workers and devices are destructed (in the C++ sense)
|
static |
|
inlinestatic |
search a device by name
_n | The name of the device |
|
inlinestatic |
search a device by name
_n | The name of the device |
|
static |
the list of names mapped to devices
|
static |
|
static |
|
static |
Add all configured devices to the list of devices.
_config | The property tree with the DEV nodes that must contain the devices. Nodes are recognized if the first three letters are capitalized DEV. |
|
static |
|
static |
load services recognizing NAME and STATE in the configuration.
_config | the node in the property tree |
search a device by name
_n | The name of the device |
search a device by name
_n | The name of the device |
|
inlinestatic |
search a worker by name
_n | The name of the worker. |
|
inlinestatic |
search a worker by name
_n | The name of the worker. |
|
inlinestatic |
create a worker by name
_n | The name of the worker. |
|
inlinestatic |
create a worker by name
_n | The name of the worker. |
|
static |
start sequentially all workers known in the list.
|
static |
|
static |
the list of workers.
|
static |
|
inlinestatic |
search a worker by name
_n | The name of the worker. |
|
inlinestatic |
search a worker by name
_n | The name of the worker. |
|
static |
|
static |
the list of names mapped to workers.
|
staticprotected |
The loaded devices mapped by name.
|
staticprotected |
The vector of workers.
|
staticprotected |
The map that associates names with workers.