|
Root of the config structure. More...
#include <armarx/control/hardware_config/HardwareConfig.h>
Public Member Functions | |
void | addDeviceConfig (const std::string name, std::shared_ptr< DeviceConfig > config) |
Add a DeviceConfig. More... | |
bool | checkAllItemsRead (std::vector< std::string > &errors) const |
This method is called when the config is completely read form the HardwareConfig file. More... | |
DeviceConfig & | getDeviceConfig (std::string name) |
HardwareConfig () | |
void | onParsingFinished () |
This method is called when the config is completely read form the HardwareConfig file. More... | |
Public Attributes | |
std::map< std::string, std::shared_ptr< DeviceConfig > > | deviceConfigs |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const HardwareConfig &rhs) |
Print a representation of the entire structure. More... | |
Root of the config structure.
Definition at line 14 of file HardwareConfig.h.
HardwareConfig | ( | ) |
Definition at line 5 of file HardwareConfig.cpp.
void addDeviceConfig | ( | const std::string | name, |
std::shared_ptr< DeviceConfig > | config | ||
) |
Add a DeviceConfig.
name | the DeviceConfig name |
config | the DeviceConfig object |
Definition at line 31 of file HardwareConfig.cpp.
bool checkAllItemsRead | ( | std::vector< std::string > & | errors | ) | const |
This method is called when the config is completely read form the HardwareConfig file.
It starts the tracking of which item is read from this Config object.
Definition at line 42 of file HardwareConfig.cpp.
DeviceConfig & getDeviceConfig | ( | std::string | name | ) |
Definition at line 10 of file HardwareConfig.cpp.
void onParsingFinished | ( | ) |
This method is called when the config is completely read form the HardwareConfig file.
It starts the tracking of which item is read from this Config object.
Definition at line 22 of file HardwareConfig.cpp.
|
friend |
Print a representation of the entire structure.
stream | |
rhs | the HardwareConfig structure to be printed |
Definition at line 29 of file HardwareConfig.h.
std::map<std::string, std::shared_ptr<DeviceConfig> > deviceConfigs |
Definition at line 59 of file HardwareConfig.h.