1 #ifndef NDSREGISTER_DEVICE_H
2 #define NDSREGISTER_DEVICE_H
14 const std::string m_driverName;
17 RegisterDevice(
const char *driverName) : m_driverName(std::string(driverName)) {
22 return new T(factory, device, parameters);
25 static void deallocateDevice(
void *device) {
29 const char *getDriverName() {
This is a class intended to be used as a static class for automatic registering of device supports...
Definition: registerDevice.h:11
std::map< std::string, std::string > namedParameters_t
Map containing named parameters passed to the device during the initialization.
Definition: definitions.h:222
Communicates with a static instance of the control system.
Definition: factory.h:43
static void registerDriver(const std::string &driverName, allocateDriver_t allocateFunction, deallocateDriver_t deallocateFunction)
Register a device in the control system.