diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-08-04 21:57:18 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-08-04 21:57:18 (GMT) |
commit | db8418fb9f733ca0147cc225ce0988d7866f15cd (patch) | |
tree | d24805c2a17bc01a408d89f7675f66806879fb59 /src/uscxml/Interpreter.cpp | |
parent | ad2653c30b78b2951eb79d303a9e3ab52f4a2def (diff) | |
download | uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.zip uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.gz uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.bz2 |
Changed Monitor signature to take Interpreter facade
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r-- | src/uscxml/Interpreter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index c16b70c..1d348fd 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -246,19 +246,19 @@ static void printNodeSet(const std::list<XERCESC_NS::DOMElement*> nodes) { } #endif -void StateTransitionMonitor::beforeTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) { +void StateTransitionMonitor::beforeTakingTransition(Interpreter& interpreter, const XERCESC_NS::DOMElement* transition) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Transition: " << uscxml::DOMUtils::xPathForNode(transition) << std::endl; } -void StateTransitionMonitor::onStableConfiguration(InterpreterImpl* impl) { +void StateTransitionMonitor::onStableConfiguration(Interpreter& interpreter) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Stable Config: { "; // printNodeSet(_interpreter.getConfiguration()); std::cerr << " }" << std::endl; } -void StateTransitionMonitor::beforeProcessingEvent(InterpreterImpl* impl, const uscxml::Event& event) { +void StateTransitionMonitor::beforeProcessingEvent(Interpreter& interpreter, const uscxml::Event& event) { std::lock_guard<std::recursive_mutex> lock(_mutex); switch (event.eventType) { case uscxml::Event::INTERNAL: @@ -273,23 +273,23 @@ void StateTransitionMonitor::beforeProcessingEvent(InterpreterImpl* impl, const } } -void StateTransitionMonitor::beforeExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* element) { +void StateTransitionMonitor::beforeExecutingContent(Interpreter& interpreter, const XERCESC_NS::DOMElement* element) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Executable Content: " << DOMUtils::xPathForNode(element) << std::endl; } -void StateTransitionMonitor::beforeExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { +void StateTransitionMonitor::beforeExitingState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Exiting: " << (HAS_ATTR(state, "id") ? ATTR(state, "id") : DOMUtils::xPathForNode(state)) << std::endl; } -void StateTransitionMonitor::beforeEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { +void StateTransitionMonitor::beforeEnteringState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Entering: " << (HAS_ATTR(state, "id") ? ATTR(state, "id") : DOMUtils::xPathForNode(state)) << std::endl; } -void StateTransitionMonitor::beforeMicroStep(InterpreterImpl* impl) { +void StateTransitionMonitor::beforeMicroStep(Interpreter& interpreter) { std::lock_guard<std::recursive_mutex> lock(_mutex); std::cerr << "Config: {"; // printNodeSet(_interpreter.getConfiguration()); |