A DeviceProvider is a collection of Actuators and Sensors which can be connected to a TwirreLink instance.
More...
#include <DeviceProvider.h>
|
std::map< std::string, Sensor * > | _sensors |
|
std::map< std::string, Actuator * > | _actuators |
|
A DeviceProvider is a collection of Actuators and Sensors which can be connected to a TwirreLink instance.
void twirre::DeviceProvider::addActuator |
( |
Actuator * |
a | ) |
|
|
virtual |
Add an Actuator to this provider.
- Parameters
-
void twirre::DeviceProvider::addSensor |
( |
Sensor * |
s | ) |
|
|
virtual |
Add a Sensor to this provider.
- Parameters
-
s | a pointer to the Sensor to be added |
const std::map< std::string, Actuator * > & twirre::DeviceProvider::getActuators |
( |
| ) |
|
|
virtual |
Get all available actuators.
- Returns
- A const reference to the internal map is returned. This map maps an actuator name to a pointer to the actual Actuator object.
const std::map< std::string, Sensor * > & twirre::DeviceProvider::getSensors |
( |
| ) |
|
|
virtual |
Get all available sensors.
- Returns
- A const reference to the internal map is returned. This map maps an sensor name to a pointer to the actual Sensor object.
The documentation for this class was generated from the following files: