Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
karto::SensorManager Class Reference

#include <Karto.h>

List of all members.

Public Member Functions

SensorVector GetAllSensors ()
SensorGetSensorByName (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 SensorManagerGetInstance ()

Static Protected Member Functions

static void Validate (Sensor *pSensor)

Protected Attributes

SensorManagerMap m_Sensors

Detailed Description

Manages sensors

Definition at line 3513 of file Karto.h.


Constructor & Destructor Documentation

Constructor

Definition at line 3519 of file Karto.h.

virtual karto::SensorManager::~SensorManager ( ) [inline, virtual]

Destructor

Definition at line 3526 of file Karto.h.


Member Function Documentation

Gets all registered sensors

Returns:
vector of all registered sensors

Definition at line 3612 of file Karto.h.

Get singleton instance of SensorManager

Definition at line 35 of file Karto.cpp.

Sensor* karto::SensorManager::GetSensorByName ( const Name rName) [inline]

Gets the sensor with the given name

Parameters:
rNamename of sensor
Returns:
sensor

Definition at line 3585 of file Karto.h.

template<class T >
T* karto::SensorManager::GetSensorByName ( const Name rName) [inline]

Gets the sensor with the given name

Parameters:
rNamename of sensor
Returns:
sensor

Definition at line 3601 of file Karto.h.

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

Parameters:
pSensorsensor to register
override
Returns:
true if sensor is registered with SensorManager, false if Sensor name is not unique

Definition at line 3544 of file Karto.h.

void karto::SensorManager::UnregisterSensor ( Sensor pSensor) [inline]

Unregisters the given sensor

Parameters:
pSensorsensor to unregister

Definition at line 3564 of file Karto.h.

static void karto::SensorManager::Validate ( Sensor pSensor) [inline, static, protected]

Checks that given sensor is not NULL and has non-empty name

Parameters:
pSensorsensor to validate

Definition at line 3629 of file Karto.h.


Member Data Documentation

Sensor map

Definition at line 3645 of file Karto.h.


The documentation for this class was generated from the following files:


open_karto
Author(s):
autogenerated on Tue May 2 2017 02:41:15