#include <SensorRegistry.h>
Public Member Functions | |
void | Clear () |
Sensor * | GetSensorByName (const Identifier &rName) |
template<class C > | |
C * | GetSensorByName (const Identifier &rName) |
SensorRegistry () | |
virtual | ~SensorRegistry () |
Static Public Member Functions | |
static SensorRegistry * | GetInstance () |
static void | Validate (Sensor *pSensor) |
Private Member Functions | |
void | RegisterSensor (Sensor *pSensor) |
void | UnregisterSensor (Sensor *pSensor) |
Private Attributes | |
SensorRegistryPrivate * | m_pSensorRegistryPrivate |
Friends | |
class | Sensor |
Sensors registry. Manages all sensors in Karto and is used internally by Karto. This class is subject to change and it is not recommend to call any of the SensorRegistry's methods.
Definition at line 43 of file SensorRegistry.h.
Default constructor
Definition at line 46 of file SensorRegistry.cpp.
karto::SensorRegistry::~SensorRegistry | ( | ) | [virtual] |
Destructor
Definition at line 51 of file SensorRegistry.cpp.
void karto::SensorRegistry::Clear | ( | ) |
Clears the registry
Definition at line 139 of file SensorRegistry.cpp.
SensorRegistry * karto::SensorRegistry::GetInstance | ( | ) | [static] |
Gets singleton instance of SensorRegistry
Definition at line 57 of file SensorRegistry.cpp.
Sensor * karto::SensorRegistry::GetSensorByName | ( | const Identifier & | rName | ) |
Gets the sensor with the given name
rName | name of sensor |
Definition at line 121 of file SensorRegistry.cpp.
C* karto::SensorRegistry::GetSensorByName | ( | const Identifier & | rName | ) | [inline] |
Gets the sensor with the given name
rName | name of sensor |
Definition at line 78 of file SensorRegistry.h.
void karto::SensorRegistry::RegisterSensor | ( | Sensor * | pSensor | ) | [private] |
Registers a sensor. The sensor name must be unique; if not, an exception will be thrown
pSensor | sensor to register |
Definition at line 68 of file SensorRegistry.cpp.
void karto::SensorRegistry::UnregisterSensor | ( | Sensor * | pSensor | ) | [private] |
Unregisters the given sensor
pSensor | sensor to unregister |
Definition at line 94 of file SensorRegistry.cpp.
void karto::SensorRegistry::Validate | ( | Sensor * | pSensor | ) | [static] |
Checks that given sensor is not NULL and has a non-empty name
pSensor | sensor to validate |
Definition at line 145 of file SensorRegistry.cpp.
friend class Sensor [friend] |
Definition at line 45 of file SensorRegistry.h.
Definition at line 111 of file SensorRegistry.h.