#include <Karto.h>
Public Member Functions | |
SensorVector | GetAllSensors () |
Sensor * | GetSensorByName (const Name &rName) |
template<class T > | |
T * | GetSensorByName (const Name &rName) |
void | RegisterSensor (Sensor *pSensor, kt_bool override=false) |
SensorManager () | |
void | UnregisterSensor (Sensor *pSensor) |
virtual | ~SensorManager () |
Static Public Member Functions | |
static SensorManager * | GetInstance () |
Static Protected Member Functions | |
static void | Validate (Sensor *pSensor) |
Protected Attributes | |
SensorManagerMap | m_Sensors |
karto::SensorManager::SensorManager | ( | ) | [inline] |
virtual karto::SensorManager::~SensorManager | ( | ) | [inline, virtual] |
SensorVector karto::SensorManager::GetAllSensors | ( | ) | [inline] |
SensorManager * karto::SensorManager::GetInstance | ( | ) | [static] |
Get singleton instance of SensorManager
Sensor* karto::SensorManager::GetSensorByName | ( | const Name & | rName | ) | [inline] |
T* karto::SensorManager::GetSensorByName | ( | const Name & | rName | ) | [inline] |
void karto::SensorManager::RegisterSensor | ( | Sensor * | pSensor, |
kt_bool | override = false |
||
) | [inline] |
Registers a sensor by it's name. The Sensor name must be unique, if not sensor is not registered unless override is set to true
pSensor | sensor to register |
override |
void karto::SensorManager::UnregisterSensor | ( | Sensor * | pSensor | ) | [inline] |
static void karto::SensorManager::Validate | ( | Sensor * | pSensor | ) | [inline, static, protected] |
SensorManagerMap karto::SensorManager::m_Sensors [protected] |