diff options
Diffstat (limited to 'src/uscxml/Interpreter.h')
-rw-r--r-- | src/uscxml/Interpreter.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index 303e126..a22b7b8 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -62,7 +62,7 @@ e.name = "error.platform"; \ e.data.compound["cause"] = Data(msg, Data::VERBATIM); \ throw e; \ - + #define USCXML_MONITOR_CATCH(callback) \ catch (Event e) { \ @@ -75,7 +75,7 @@ catch (Event e) { \ if (_state == USCXML_DESTROYED) { \ throw boost::bad_weak_ptr(); \ } \ - + #define USCXML_MONITOR_CALLBACK(callback)\ for(monIter_t monIter = _monitors.begin(); monIter != _monitors.end(); monIter++) { \ @@ -404,37 +404,37 @@ public: virtual void handleDOMEvent(Arabica::DOM::Events::Event<std::string>& event); - std::vector<std::string> getReachableTargets() { + std::vector<std::string> getReachableTargets() { - std::vector<std::string> e; + std::vector<std::string> e; tthread::lock_guard<tthread::recursive_mutex> lock(_mutex); - Arabica::XPath::NodeSet<std::string> possibleTransitions = DOMUtils::filterChildElements( "transition", _configuration, false); + Arabica::XPath::NodeSet<std::string> possibleTransitions = DOMUtils::filterChildElements( "transition", _configuration, false); - for( size_t i = 0; i < possibleTransitions.size(); i++ ) { - Arabica::DOM::Node<std::string> transitions = possibleTransitions[ i ]; - Arabica::DOM::NamedNodeMap<std::string> attributes = transitions.getAttributes(); - Arabica::DOM::Node<std::string> events = attributes.getNamedItem("target"); - e.push_back( std::string( events.getNodeValue() ) ); - } - return e; + for( size_t i = 0; i < possibleTransitions.size(); i++ ) { + Arabica::DOM::Node<std::string> transitions = possibleTransitions[ i ]; + Arabica::DOM::NamedNodeMap<std::string> attributes = transitions.getAttributes(); + Arabica::DOM::Node<std::string> events = attributes.getNamedItem("target"); + e.push_back( std::string( events.getNodeValue() ) ); + } + return e; - } + } - std::vector<std::string> getEventDescriptors() { + std::vector<std::string> getEventDescriptors() { - std::vector<std::string> e; + std::vector<std::string> e; tthread::lock_guard<tthread::recursive_mutex> lock(_mutex); - Arabica::XPath::NodeSet<std::string> possibleTransitions = DOMUtils::filterChildElements( "transition", _configuration, false); + Arabica::XPath::NodeSet<std::string> possibleTransitions = DOMUtils::filterChildElements( "transition", _configuration, false); - for( size_t i = 0; i < possibleTransitions.size(); i++ ) { - Arabica::DOM::Node<std::string> transitions = possibleTransitions[ i ]; - Arabica::DOM::NamedNodeMap<std::string> attributes = transitions.getAttributes(); - Arabica::DOM::Node<std::string> events = attributes.getNamedItem("event"); - e.push_back( std::string( events.getNodeValue() ) ); - } - return e; + for( size_t i = 0; i < possibleTransitions.size(); i++ ) { + Arabica::DOM::Node<std::string> transitions = possibleTransitions[ i ]; + Arabica::DOM::NamedNodeMap<std::string> attributes = transitions.getAttributes(); + Arabica::DOM::Node<std::string> events = attributes.getNamedItem("event"); + e.push_back( std::string( events.getNodeValue() ) ); + } + return e; - } + } protected: static void run(void*); // static method for thread to run @@ -623,13 +623,13 @@ public: return _impl->reset(); } - std::vector<std::string> getReachableTargets() { - return _impl->getReachableTargets(); - } + std::vector<std::string> getReachableTargets() { + return _impl->getReachableTargets(); + } - std::vector<std::string> getEventDescriptors() { - return _impl->getEventDescriptors(); - } + std::vector<std::string> getEventDescriptors() { + return _impl->getEventDescriptors(); + } void start() { return _impl->start(); |