diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-08-03 12:17:08 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-08-03 12:17:08 (GMT) |
commit | e46dd37dc472b467ac8da137677bdcd3c4770b29 (patch) | |
tree | 9938f61939f394a6c57399b97a916b69c61ecaee | |
parent | 9317910791b8d212a765481c87ce1946a3d5f7c7 (diff) | |
download | uscxml-e46dd37dc472b467ac8da137677bdcd3c4770b29.zip uscxml-e46dd37dc472b467ac8da137677bdcd3c4770b29.tar.gz uscxml-e46dd37dc472b467ac8da137677bdcd3c4770b29.tar.bz2 |
Allow custom EventQueue implementations via ActionLanguage
-rw-r--r-- | src/uscxml/Interpreter.h | 4 | ||||
-rw-r--r-- | src/uscxml/interpreter/InterpreterImpl.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index c3cd7c4..630ea61 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -30,6 +30,7 @@ #include "uscxml/interpreter/MicroStep.h" #include "uscxml/plugins/DataModel.h" #include "uscxml/interpreter/ContentExecutor.h" +#include "uscxml/interpreter/EventQueue.h" #include "uscxml/interpreter/InterpreterState.h" #ifdef max @@ -52,6 +53,9 @@ public: MicroStep microStepper; ///< The microstepper instance to use DataModel dataModel; ///< The datamodel to uses ContentExecutor execContent; ///< To process executable content elements + EventQueue internalQueue; ///< The queue where internal events will be enqueued + EventQueue externalQueue; ///< The queue for external events + DelayedEventQueue delayedQueue; ///< The queue for delayed events }; /** diff --git a/src/uscxml/interpreter/InterpreterImpl.h b/src/uscxml/interpreter/InterpreterImpl.h index fa7bf89..84aab20 100644 --- a/src/uscxml/interpreter/InterpreterImpl.h +++ b/src/uscxml/interpreter/InterpreterImpl.h @@ -230,6 +230,9 @@ public: _execContent = al.execContent; _microStepper = al.microStepper; _dataModel = al.dataModel; + _internalQueue = al.internalQueue; + _externalQueue = al.externalQueue; + _delayQueue = al.delayedQueue; } static std::map<std::string, std::weak_ptr<InterpreterImpl> > getInstances(); |