Go to the documentation of this file.
25 #include "../StateTemplate.h"
26 #include "../StateBase.h"
27 #include "../StateBaseImpl.h"
28 #include "../RemoteState.h"
29 #include "../StateUtilFunctions.h"
47 template <
class EventType,
class StateType>
54 void signalFinish(
const EventPtr event)
64 ->_addSourceDictionary(eOutput, setOutputValues)
65 ->_addSourceDictionary(eEvent, event->properties)
69 ev->properties =
event->properties;
70 this->__getParentState()->__substatesFinished(ev);
86 StateParameterMap::iterator it = this->StateIceBase::inputParameters.begin();
88 for (; it != this->StateIceBase::inputParameters.end(); it++)
90 it->second->optionalParam =
true;
108 this->stateType = eFinalState;
109 this->unbreakable =
false;
110 this->greedyInputDictionary =
false;
111 this->
eventToSend = StateUtility::createEvent<EventType>();
132 template <
class Event>
144 template <
class EventType = EvDummy>
159 state->setStateName(event->eventName);
160 state->eventToSend = event;
StateParameterMap & getOutputParameters() override
getter function to get the map of output parameters
StateControllerPtr __getParentState() const
Getter function that automatically casts the parentState member of StateBase into StateControllerPtr.
RemoteStatePtr addRemoteState(std::string stateName, std::string proxyName, std::string instanceName="") override
Overridden function, which always throws an exception, to forbid the usage of this function here.
ParameterMappingPtr createMapping()
Returns a new and empty instance of ParameterMapping.
EventPtr eventToSend
Event that is automatically sent when this state is entered.
An Event is used to communicate between e.g. condition handlers and statecharts.
void copyDictionary(const StringVariantContainerBaseMap &source, StringVariantContainerBaseMap &destination)
Clears the destination map and copies the parameters of the source in it.
static StatePtr createState(const EventPtr &event)
createState creates a finalstate instance with the specified event type.
void defineParameters() override
StatePtr addState(std::string stateName)
Overridden function, which always throws an exception, to forbid the usage of this function here.
DEFINEEVENT(EvInit) struct StateRun
StateParameterMap getInputParameters() override
Returns a new copy of the inputparameters-dictionary, so that the caller cannot modify them (const wo...
StringVariantContainerBaseMap getSetValues(const StateParameterMap ¶mMap)
std::unique_ptr< Impl > impl
This file offers overloads of toIce() and fromIce() functions for STL container types.
This is the standard implementation of FinalStateBase.