uscxml::InvokerImpl Class Referenceabstract
Abstract base class for all invokers.
#include <InvokerImpl.h>
Inheritance diagram for uscxml::InvokerImpl:
Collaboration diagram for uscxml::InvokerImpl:
Public Member Functions | |
virtual std::shared_ptr< InvokerImpl > | create (InvokerCallbacks *callbacks)=0 |
Factory demands a new instance. More... | |
virtual void | deserialize (const Data &encodedState) |
Load a state from a Data object. More... | |
virtual void | eventFromSCXML (const Event &event)=0 |
Invoker received an event from the SCXML Interpreter. | |
virtual std::list< std::string > | getNames ()=0 |
Return a list of names for types we implement. | |
virtual void | invoke (const std::string &source, const Event &invokeEvent)=0 |
Invoker's parent state became active at the end of a macro-step. More... | |
virtual Data | serialize () |
Save our state into a Data object. | |
virtual void | setInvokeId (const std::string &invokeId) |
Set the invocation identifier as required when returning events. More... | |
virtual void | uninvoke ()=0 |
The invokers's parent state was left at the end of a macro-step. | |
Public Member Functions inherited from uscxml::EventHandlerImpl | |
virtual Data | getDataModelVariables ()=0 |
Export a Data object for the `_x['name']` data-model namespace. More... | |
Protected Member Functions | |
void | eventToSCXML (Event &event, const std::string &type, const std::string &invokeId, bool internal=false) |
Return an event to the SCXML Interpreter instance. More... | |
Protected Attributes | |
InvokerCallbacks * | _callbacks |
std::string | _invokeId |
Member Function Documentation
|
pure virtual |
- Parameters
-
callbacks An object implementing the invoker callbacks.
Implemented in uscxml::DirMonInvoker, and uscxml::USCXMLInvoker.
|
inlinevirtual |
- Parameters
-
encodedState The state we returned somewhen else via serialize.
Reimplemented in uscxml::USCXMLInvoker.
|
protected |
- Parameters
-
event An event to enqueue at the interpreter's external queue. type The type of this I/O Processor for event.origintype
.invokeId The invocation identifier of this invocation for event.invokeid
.internal If the event is to be delivered to the Interpreter's internal queue instead.
|
pure virtual |
- Parameters
-
source The content of the invoke's src
or evaluatedsrcexpr
attributeinvokeEvent The invocation with all its data as an event
Implemented in uscxml::DirMonInvoker, and uscxml::USCXMLInvoker.
|
inlinevirtual |
- Parameters
-
invokeId The invocation identifier.
The documentation for this class was generated from the following files:
- plugins/InvokerImpl.h
- plugins/Factory.cpp