diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-31 16:43:13 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-31 16:43:13 (GMT) |
commit | 71e1b30a2dcb8eefae105a5562239e21f07768c7 (patch) | |
tree | 0c18610f809fecc06c89c1fa0e2c36e51498b7ba /src/uscxml/Interpreter.h | |
parent | cf67d5ccefd7092fdf5c2bc1284e74f4c3413c7b (diff) | |
download | uscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.zip uscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.tar.gz uscxml-71e1b30a2dcb8eefae105a5562239e21f07768c7.tar.bz2 |
Moved Parser into DOMUtils and new node -> xpath function for debugging
Diffstat (limited to 'src/uscxml/Interpreter.h')
-rw-r--r-- | src/uscxml/Interpreter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index ac26457..008de6f 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -37,6 +37,8 @@ #include <DOM/SAX2DOM/SAX2DOM.hpp> #include <SAX/helpers/CatchErrorHandler.hpp> +#include <DOM/Events/EventTarget.hpp> +#include <DOM/Events/EventListener.hpp> #include "uscxml/concurrency/tinythread.h" #include "uscxml/concurrency/eventqueue/DelayedEventQueue.h" @@ -130,6 +132,12 @@ public: LATE = 1 }; + class DOMEventListener : public Arabica::DOM::Events::EventListener<std::string> { + public: + void handleEvent(Arabica::DOM::Events::Event<std::string>& event); + InterpreterImpl* _interpreter; + }; + virtual ~InterpreterImpl(); void start(); @@ -339,6 +347,8 @@ protected: uscxml::concurrency::BlockingQueue<SendRequest>* _parentQueue; DelayedEventQueue* _sendQueue; + DOMEventListener _domEventListener; + Event _currEvent; Factory* _factory; InterpreterServlet* _httpServlet; |