#include <SensorRegistry.h>
Public Member Functions | |
void | Clear () |
Sensor * | GetSensorByName (const Identifier &rName) |
template<class C > | |
C * | GetSensorByName (const Identifier &rName) |
SensorRegistry () | |
virtual | ~SensorRegistry () |
Public Member Functions inherited from karto::Referenced | |
Referenced () | |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from karto::Referenced | |
kt_int32s | GetReferenceCount () |
kt_int32s | Reference () const |
kt_int32s | Unreference () const |
kt_int32s | UnreferenceNoDelete () const |
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.
karto::SensorRegistry::SensorRegistry | ( | ) |
Default constructor
Definition at line 46 of file SensorRegistry.cpp.
|
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.
|
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.
|
inline |
Gets the sensor with the given name
rName | name of sensor |
Definition at line 78 of file SensorRegistry.h.
|
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.
|
private |
Unregisters the given sensor
pSensor | sensor to unregister |
Definition at line 94 of file SensorRegistry.cpp.
|
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 |
Definition at line 45 of file SensorRegistry.h.
|
private |
Definition at line 111 of file SensorRegistry.h.