uscxml::IOProcessorImpl Class Referenceabstract
Abstract base class for IOProcessors implementations.
#include <IOProcessorImpl.h>
Inheritance diagram for uscxml::IOProcessorImpl:
Collaboration diagram for uscxml::IOProcessorImpl:
Public Member Functions | |
virtual std::shared_ptr< IOProcessorImpl > | create (IOProcessorCallbacks *callbacks)=0 |
Factory demands a new instance. More... | |
virtual void | eventFromSCXML (const std::string &target, const Event &event)=0 |
We received an event from the SCXML Interpreter we are associated with. More... | |
virtual bool | isValidTarget (const std::string &target)=0 |
Determine whether the given target is a valid destination for events. More... | |
Public Member Functions inherited from uscxml::EventHandlerImpl | |
virtual Data | getDataModelVariables ()=0 |
Export a Data object for the `_x['name']` data-model namespace. More... | |
virtual std::list< std::string > | getNames ()=0 |
Return a list of names for types we implement. | |
Protected Member Functions | |
void | eventToSCXML (Event &event, const std::string &type, const std::string &origin, bool internal=false) |
Return an event to the SCXML Interpreter instance. More... | |
Protected Attributes | |
IOProcessorCallbacks * | _callbacks |
Member Function Documentation
|
pure virtual |
- Parameters
-
interpreter The imlementation of the associated Interpreter
- Todo:
- We will eventually introduce callbacks and prevent complete access to the interpreter.
Implemented in uscxml::BasicHTTPIOProcessor, and uscxml::SCXMLIOProcessor.
|
pure virtual |
- Parameters
-
target Where the event is supposed to be delivered to. event The event to deliver.
Implemented in uscxml::BasicHTTPIOProcessor, and uscxml::SCXMLIOProcessor.
|
protected |
- Parameters
-
event An event to enqueue at the interpreter's external queue. type The type of this I/O Processor for event.origintype
.origin The origin of this I/O Processor for event.origin
.internal If the event is to be delivered to the Interpreter's internal queue instead.
|
pure virtual |
- Parameters
-
target A target where the Interpreter wants to deliver Events to.
- Returns
- Whether or not the target is valid.
Implemented in uscxml::BasicHTTPIOProcessor, and uscxml::SCXMLIOProcessor.
The documentation for this class was generated from the following files:
- plugins/IOProcessorImpl.h
- plugins/Factory.cpp