summaryrefslogtreecommitdiffstats
path: root/src/uscxml/debug/Debugger.h
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-08-04 21:57:18 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-08-04 21:57:18 (GMT)
commitdb8418fb9f733ca0147cc225ce0988d7866f15cd (patch)
treed24805c2a17bc01a408d89f7675f66806879fb59 /src/uscxml/debug/Debugger.h
parentad2653c30b78b2951eb79d303a9e3ab52f4a2def (diff)
downloaduscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.zip
uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.gz
uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.bz2
Changed Monitor signature to take Interpreter facade
Diffstat (limited to 'src/uscxml/debug/Debugger.h')
-rw-r--r--src/uscxml/debug/Debugger.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/uscxml/debug/Debugger.h b/src/uscxml/debug/Debugger.h
index 08136d6..4b564cb 100644
--- a/src/uscxml/debug/Debugger.h
+++ b/src/uscxml/debug/Debugger.h
@@ -55,45 +55,45 @@ public:
virtual void pushData(std::shared_ptr<DebugSession> session, Data pushData) = 0;
// InterpreterMonitor
- virtual void beforeProcessingEvent(InterpreterImpl* impl, const Event& event);
- virtual void beforeMicroStep(InterpreterImpl* impl);
- virtual void beforeExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
- virtual void afterExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
- virtual void beforeExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* execContent);
- virtual void afterExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* execContent);
- virtual void beforeUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
- virtual void afterUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
- virtual void beforeTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition);
- virtual void afterTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition);
- virtual void beforeEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
- virtual void afterEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
- virtual void beforeInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
- virtual void afterInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
- virtual void afterMicroStep(InterpreterImpl* impl);
- virtual void onStableConfiguration(InterpreterImpl* impl);
- virtual void beforeCompletion(InterpreterImpl* impl);
- virtual void afterCompletion(InterpreterImpl* impl);
+ virtual void beforeProcessingEvent(Interpreter& interpreter, const Event& event);
+ virtual void beforeMicroStep(Interpreter& interpreter);
+ virtual void beforeExitingState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state);
+ virtual void afterExitingState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state);
+ virtual void beforeExecutingContent(Interpreter& interpreter, const XERCESC_NS::DOMElement* execContent);
+ virtual void afterExecutingContent(Interpreter& interpreter, const XERCESC_NS::DOMElement* execContent);
+ virtual void beforeUninvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
+ virtual void afterUninvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
+ virtual void beforeTakingTransition(Interpreter& interpreter, const XERCESC_NS::DOMElement* transition);
+ virtual void afterTakingTransition(Interpreter& interpreter, const XERCESC_NS::DOMElement* transition);
+ virtual void beforeEnteringState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state);
+ virtual void afterEnteringState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state);
+ virtual void beforeInvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
+ virtual void afterInvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid);
+ virtual void afterMicroStep(Interpreter& interpreter);
+ virtual void onStableConfiguration(Interpreter& interpreter);
+ virtual void beforeCompletion(Interpreter& interpreter);
+ virtual void afterCompletion(Interpreter& interpreter);
protected:
- void handleTransition(InterpreterImpl* impl,
+ void handleTransition(Interpreter& interpreter,
const XERCESC_NS::DOMElement* transition,
Breakpoint::When when);
- void handleState(InterpreterImpl* impl,
+ void handleState(Interpreter& interpreter,
const XERCESC_NS::DOMElement* state,
Breakpoint::When when,
Breakpoint::Action action);
- void handleInvoke(InterpreterImpl* impl,
+ void handleInvoke(Interpreter& interpreter,
const XERCESC_NS::DOMElement* invokeElem,
const std::string& invokeId,
Breakpoint::When when,
Breakpoint::Action action);
- void handleExecutable(InterpreterImpl* impl,
+ void handleExecutable(Interpreter& interpreter,
const XERCESC_NS::DOMElement* execContentElem,
Breakpoint::When when);
- void handleStable(InterpreterImpl* impl, Breakpoint::When when);
- void handleMicrostep(InterpreterImpl* impl, Breakpoint::When when);
- void handleEvent(InterpreterImpl* impl, const Event& event, Breakpoint::When when);
+ void handleStable(Interpreter& interpreter, Breakpoint::When when);
+ void handleMicrostep(Interpreter& interpreter, Breakpoint::When when);
+ void handleEvent(Interpreter& interpreter, const Event& event, Breakpoint::When when);
std::list<Breakpoint> getQualifiedTransBreakpoints(InterpreterImpl* impl,
const XERCESC_NS::DOMElement* transition,
@@ -107,6 +107,7 @@ protected:
Breakpoint breakpointTemplate);
std::recursive_mutex _sessionMutex;
+ /// @todo: We ought to change form InterpreterImpl to Interpreter everywhere
std::map<InterpreterImpl*, std::shared_ptr<DebugSession> > _sessionForInterpreter;
};