Cheetah Software
1.0
|
#include <ControlParameters.h>
Public Member Functions | |
ControlParameterCollection (const std::string &name) | |
void | addParameter (ControlParameter *param, const std::string &name) |
ControlParameter & | lookup (const std::string &name) |
std::string | printToIniString () |
print all control parameters in the INI file format More... | |
std::string | printToYamlString () |
bool | checkIfAllSet () |
are all the control parameters initialized? More... | |
void | clearAllSet () |
void | deleteAll () |
Public Attributes | |
std::map< std::string, ControlParameter * > | _map |
Private Attributes | |
std::string | _name |
ControlParameterCollections contains a map of all the control parameters.
Definition at line 71 of file ControlParameters.h.
|
inlineexplicit |
Definition at line 73 of file ControlParameters.h.
|
inline |
Use this to add a parameter for the first time in the RobotControlParameters or SimulatorControlParameters This should only be used during initialization of a ControlParameter
Definition at line 80 of file ControlParameters.h.
References mapContains().
bool ControlParameterCollection::checkIfAllSet | ( | ) |
are all the control parameters initialized?
Definition at line 67 of file ControlParameters.cpp.
References _map.
void ControlParameterCollection::clearAllSet | ( | ) |
Definition at line 76 of file ControlParameters.cpp.
References _map.
void ControlParameterCollection::deleteAll | ( | ) |
Definition at line 82 of file ControlParameters.cpp.
References _map.
|
inline |
Lookup a control parameter by its name. This does not modify the set field of the control parameter!
Definition at line 95 of file ControlParameters.h.
References mapContains().
std::string ControlParameterCollection::printToIniString | ( | ) |
print all control parameters in the INI file format
Definition at line 100 of file ControlParameters.cpp.
References _map, _name, and getCurrentTimeAndDate().
std::string ControlParameterCollection::printToYamlString | ( | ) |
print all control parameters in the YAML file format
Definition at line 157 of file ControlParameters.cpp.
References _map, _name, getCurrentTimeAndDate(), and YAML_COLLECTION_NAME_KEY.
std::map<std::string, ControlParameter*> ControlParameterCollection::_map |
Definition at line 114 of file ControlParameters.h.
|
private |
Definition at line 117 of file ControlParameters.h.