diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-04 00:10:57 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-04 00:10:57 (GMT) |
commit | 7afc6a257e193986c9305364701085e65c4ccea5 (patch) | |
tree | 4bc967a50d872e0267d5cf970ab9b88d87dee16b /src/uscxml/interpreter | |
parent | 0b313e00915b31c8c03980b7225f82ac2e9513e6 (diff) | |
download | uscxml-7afc6a257e193986c9305364701085e65c4ccea5.zip uscxml-7afc6a257e193986c9305364701085e65c4ccea5.tar.gz uscxml-7afc6a257e193986c9305364701085e65c4ccea5.tar.bz2 |
Preliminary support for SCXML invocations in generated C machines
Diffstat (limited to 'src/uscxml/interpreter')
-rw-r--r-- | src/uscxml/interpreter/InterpreterFast.cpp | 10 | ||||
-rw-r--r-- | src/uscxml/interpreter/InterpreterFast.h | 26 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/uscxml/interpreter/InterpreterFast.cpp b/src/uscxml/interpreter/InterpreterFast.cpp index 0958c61..94fcdce 100644 --- a/src/uscxml/interpreter/InterpreterFast.cpp +++ b/src/uscxml/interpreter/InterpreterFast.cpp @@ -33,10 +33,10 @@ using namespace Arabica::DOM; void InterpreterFast::handleDOMEvent(Arabica::DOM::Events::Event<std::string>& event) { - InterpreterImpl::handleDOMEvent(event); - - if (event.getType().compare("DOMAttrModified") == 0) // we do not care about attributes - return; - + InterpreterImpl::handleDOMEvent(event); + + if (event.getType().compare("DOMAttrModified") == 0) // we do not care about attributes + return; + } }
\ No newline at end of file diff --git a/src/uscxml/interpreter/InterpreterFast.h b/src/uscxml/interpreter/InterpreterFast.h index 589e899..5838dc0 100644 --- a/src/uscxml/interpreter/InterpreterFast.h +++ b/src/uscxml/interpreter/InterpreterFast.h @@ -23,25 +23,25 @@ #include "uscxml/Interpreter.h" namespace uscxml { - + class InterpreterFast : public InterpreterImpl { protected: - virtual void setupSets(); - virtual void handleDOMEvent(Arabica::DOM::Events::Event<std::string>& event); - + virtual void setupSets(); + virtual void handleDOMEvent(Arabica::DOM::Events::Event<std::string>& event); + private: - /* TODO: use post-order and document-order per STL comparator (sorted std::set?) */ - - std::vector<Arabica::XPath::NodeSet<std::string> > _states; - std::vector<Arabica::XPath::NodeSet<std::string> > _transitions; - - std::vector<std::vector<bool> > _conflictingTransitions; - std::vector<std::vector<bool> > _exitSets; - std::vector<std::vector<bool> > _targetSets; + /* TODO: use post-order and document-order per STL comparator (sorted std::set?) */ + + std::vector<Arabica::XPath::NodeSet<std::string> > _states; + std::vector<Arabica::XPath::NodeSet<std::string> > _transitions; + + std::vector<std::vector<bool> > _conflictingTransitions; + std::vector<std::vector<bool> > _exitSets; + std::vector<std::vector<bool> > _targetSets; }; - + } #endif /* end of include guard: INTERPRETERFAST_H_224A5F07 */ |