|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
Abstract class for giving names to sensors and motors. More...
#include <sensormotorinfoable.h>


Public Types | |
| typedef std::function < std::string(int)> | NamingFunction |
| function that returns the name given the index More... | |
Public Member Functions | |
| SensorMotorInfoAble () | |
| void | setBaseName (const std::string &basename) |
| void | setBaseInfo (const SensorMotorInfo &baseinfo) |
| SensorMotorInfo | getBaseInfo () |
| void | setNamingFunc (const NamingFunction &func) |
| NamingFunction | getNamingFunc () const |
| void | setNames (const std::vector< std::string > &names) |
| set names explicitly (basename is anyway suffixed) More... | |
| std::string | getName (int index) const |
| returns the name of a single item. Typically called from within Sensor and Motor class. More... | |
| std::list< SensorMotorInfo > | getInfos (int number) const |
| get all infos. More... | |
Static Public Member Functions | |
| static std::string | defaultNameing (int index) |
| the default implementation is for index==0: basename, otherwise basename + (index+1) More... | |
Protected Attributes | |
| NamingFunction | func |
| SensorMotorInfo | baseinfo |
Abstract class for giving names to sensors and motors.
| typedef std::function<std::string(int)> NamingFunction |
function that returns the name given the index
|
inline |
|
inlinestatic |
the default implementation is for index==0: basename, otherwise basename + (index+1)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set names explicitly (basename is anyway suffixed)
|
inline |
|
protected |
|
protected |