30#include <ArmarXCore/interface/statechart/StatechartIce.h>
36#define DEFINEEVENT(NEWEVENT) \
37 struct NEWEVENT : Event \
39 NEWEVENT(std::string eventReceiverName) : Event(eventReceiverName, #NEWEVENT) \
47 class SingleTypeVariantList;
69 StringVariantContainerBaseMap
getSetValues(
const StateParameterMap& paramMap);
70 StringVariantContainerBaseMap
getValues(
const StateParameterMap& paramMap);
78 std::string* logOutput =
nullptr);
94 const std::string key,
97 bool equalKeys(
const StringVariantContainerBaseMap& dict1,
98 const StringVariantContainerBaseMap& dict2);
100 bool equalKeys(
const StateParameterMap& dict1,
const StateParameterMap& dict2);
104 StringVariantContainerBaseMap& destination);
107 void copyDictionary(
const StateParameterMap& source, StateParameterMap& destination);
111 StringVariantContainerBaseMap& destination);
115 StateParameterMap& destination);
118 StringVariantContainerBaseMap& destination);
121 StateParameterMap& destination);
The Variant class is described here: Variants.
std::string getVariantString(const VariantBasePtr &var, const std::string &name="")
void copyDictionary(const StringVariantContainerBaseMap &source, StringVariantContainerBaseMap &destination)
Clears the destination map and copies the parameters of the source in it.
std::string transitionErrorToString(TransitionErrorType type)
std::string getDictionaryString(const StringVariantContainerBaseMap &mymap)
Converts the map into a string-representation.
StringVariantContainerBaseMap getValues(const StateParameterMap ¶mMap)
bool checkForCompleteParameters(const StateParameterMap ¶mMap, std::string *logOutput=nullptr)
void unsetParameters(StateParameterMap ¶mMap)
Sets all entries of the given dictionary to the stored default values.
StringVariantContainerBaseMap getSetValues(const StateParameterMap ¶mMap)
bool equalKeys(const StringVariantContainerBaseMap &dict1, const StringVariantContainerBaseMap &dict2)
Checks whether the maps have equal keys and equal Types.
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 ...
bool waitForChannelRefs(const StateParameterMap ¶mMap)
Waits for all ChannelRefs to be initialized in the given Map.
bool addToDictionary(EventPtr event, const std::string key, const Variant &value)
Adds the (key,defaulfValue) pair to the event-dictionary.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< SingleTypeVariantList > SingleTypeVariantListPtr
@ eTransitionErrorUnexpectedEvent
@ eTransitionErrorUndefined
IceInternal::Handle< Variant > VariantPtr
::IceInternal::Handle<::armarx::VariantBase > VariantBasePtr
IceInternal::Handle< Event > EventPtr
Typedef of EventPtr as IceInternal::Handle<Event> for convenience.
std::vector< std::string > infos
vector to store info data in
TransitionErrorType errorType