|
Functions | |
bool | addToDictionary (EventPtr event, const std::string key, const SingleTypeVariantListPtr &valueList) |
bool | addToDictionary (EventPtr event, const std::string key, const Variant &value) |
Adds the (key,defaulfValue) pair to the event-dictionary. More... | |
bool | checkForCompleteParameters (const StateParameterMap ¶mMap, std::string *logOutput=nullptr) |
void | copyDictionary (const StateParameterMap &source, StateParameterMap &destination) |
Clears the destination map and copies the parameters of the source in it. More... | |
void | copyDictionary (const StateParameterMap &source, StringVariantContainerBaseMap &destination) |
Clears the destination map and copies the parameters of the source in it. More... | |
void | copyDictionary (const StringVariantContainerBaseMap &source, StateParameterMap &destination) |
Clears the destination map and copies the parameters of the source in it. More... | |
void | copyDictionary (const StringVariantContainerBaseMap &source, StringVariantContainerBaseMap &destination) |
Clears the destination map and copies the parameters of the source in it. More... | |
bool | equalKeys (const StateParameterMap &dict1, const StateParameterMap &dict2) |
Checks whether the maps have equal keys and equal Types. More... | |
bool | equalKeys (const StringVariantContainerBaseMap &dict1, const StringVariantContainerBaseMap &dict2) |
Checks whether the maps have equal keys and equal Types. More... | |
void | fillDictionary (const StringVariantContainerBaseMap &source, StateParameterMap &destination) |
Tries to fill the destination map with matching entries of the source map. Entries that could not be found, are not changed. More... | |
void | fillDictionary (const StringVariantContainerBaseMap &source, StringVariantContainerBaseMap &destination) |
Tries to fill the destination map with matching entries of the source map. Entries that could not be found, are not changed. More... | |
std::string | getDictionaryString (const StateParameterMap &mymap) |
Converts the map into a string-representation. More... | |
std::string | getDictionaryString (const StringVariantContainerBaseMap &mymap) |
Converts the map into a string-representation. More... | |
StringVariantContainerBaseMap | getSetValues (const StateParameterMap ¶mMap) |
StringVariantContainerBaseMap | getValues (const StateParameterMap ¶mMap) |
std::string | getVariantString (const VariantBasePtr &var, const std::string &name="") |
std::string | getVariantString (const VariantPtr &var, const std::string &name="") |
std::string | transitionErrorToString (TransitionErrorType type) |
void | unsetParameters (StateParameterMap ¶mMap) |
Sets all entries of the given dictionary to the stored default values. More... | |
bool | waitForChannelRefs (const StateParameterMap ¶mMap) |
Waits for all ChannelRefs to be initialized in the given Map. More... | |
bool addToDictionary | ( | EventPtr | event, |
const std::string | key, | ||
const SingleTypeVariantListPtr & | valueList | ||
) |
Definition at line 101 of file StateUtilFunctions.cpp.
Adds the (key,defaulfValue) pair to the event-dictionary.
The type of the entry is determined with defaultValue.
Definition at line 85 of file StateUtilFunctions.cpp.
bool checkForCompleteParameters | ( | const StateParameterMap & | paramMap, |
std::string * | logOutput = nullptr |
||
) |
void copyDictionary | ( | const StateParameterMap & | source, |
StateParameterMap & | destination | ||
) |
Clears the destination map and copies the parameters of the source in it.
The copies have their own memory.
Definition at line 210 of file StateUtilFunctions.cpp.
void copyDictionary | ( | const StateParameterMap & | source, |
StringVariantContainerBaseMap & | destination | ||
) |
Clears the destination map and copies the parameters of the source in it.
The copies have their own memory.
Definition at line 221 of file StateUtilFunctions.cpp.
void copyDictionary | ( | const StringVariantContainerBaseMap & | source, |
StateParameterMap & | destination | ||
) |
Clears the destination map and copies the parameters of the source in it.
The copies have their own memory.
Definition at line 233 of file StateUtilFunctions.cpp.
void copyDictionary | ( | const StringVariantContainerBaseMap & | source, |
StringVariantContainerBaseMap & | destination | ||
) |
Clears the destination map and copies the parameters of the source in it.
The copies have their own memory.
Definition at line 197 of file StateUtilFunctions.cpp.
bool equalKeys | ( | const StateParameterMap & | dict1, |
const StateParameterMap & | dict2 | ||
) |
Checks whether the maps have equal keys and equal Types.
Definition at line 120 of file StateUtilFunctions.cpp.
bool equalKeys | ( | const StringVariantContainerBaseMap & | dict1, |
const StringVariantContainerBaseMap & | dict2 | ||
) |
Checks whether the maps have equal keys and equal Types.
Definition at line 143 of file StateUtilFunctions.cpp.
void fillDictionary | ( | const StringVariantContainerBaseMap & | source, |
StateParameterMap & | destination | ||
) |
Tries to fill the destination map with matching entries of the source map. Entries that could not be found, are not changed.
Definition at line 180 of file StateUtilFunctions.cpp.
void fillDictionary | ( | const StringVariantContainerBaseMap & | source, |
StringVariantContainerBaseMap & | destination | ||
) |
Tries to fill the destination map with matching entries of the source map. Entries that could not be found, are not changed.
Definition at line 164 of file StateUtilFunctions.cpp.
std::string getDictionaryString | ( | const StateParameterMap & | mymap | ) |
Converts the map into a string-representation.
Definition at line 303 of file StateUtilFunctions.cpp.
std::string getDictionaryString | ( | const StringVariantContainerBaseMap & | mymap | ) |
Converts the map into a string-representation.
Definition at line 251 of file StateUtilFunctions.cpp.
StringVariantContainerBaseMap getSetValues | ( | const StateParameterMap & | paramMap | ) |
StringVariantContainerBaseMap getValues | ( | const StateParameterMap & | paramMap | ) |
Definition at line 72 of file StateUtilFunctions.cpp.
std::string armarx::StateUtilFunctions::getVariantString | ( | const VariantBasePtr & | var, |
const std::string & | name = "" |
||
) |
std::string getVariantString | ( | const VariantPtr & | var, |
const std::string & | name = "" |
||
) |
std::string transitionErrorToString | ( | TransitionErrorType | type | ) |
void unsetParameters | ( | StateParameterMap & | paramMap | ) |
Sets all entries of the given dictionary to the stored default values.
Definition at line 470 of file StateUtilFunctions.cpp.
bool waitForChannelRefs | ( | const StateParameterMap & | paramMap | ) |
Waits for all ChannelRefs to be initialized in the given Map.
Times out after some delay.
paramMap | parameter map, that is to be checked for initialized ChannelRefs |
Definition at line 408 of file StateUtilFunctions.cpp.