summaryrefslogtreecommitdiffstats
path: root/src/bindings/swig
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-06-18 11:55:39 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-06-18 11:55:39 (GMT)
commit0e0be07906a720ae54e4572d6ac0cb657424550d (patch)
tree7d48c87a9142a5dad06570ca4daf0212475d83f1 /src/bindings/swig
parent84bbbd42c3480c40c0355c64899f99f8d588d5c0 (diff)
downloaduscxml-0e0be07906a720ae54e4572d6ac0cb657424550d.zip
uscxml-0e0be07906a720ae54e4572d6ac0cb657424550d.tar.gz
uscxml-0e0be07906a720ae54e4572d6ac0cb657424550d.tar.bz2
Started to port Debugger and issue 87
Diffstat (limited to 'src/bindings/swig')
-rw-r--r--src/bindings/swig/wrapped/WrappedInterpreterMonitor.cpp24
-rw-r--r--src/bindings/swig/wrapped/WrappedInterpreterMonitor.h35
2 files changed, 34 insertions, 25 deletions
diff --git a/src/bindings/swig/wrapped/WrappedInterpreterMonitor.cpp b/src/bindings/swig/wrapped/WrappedInterpreterMonitor.cpp
index f066a72..a89ff54 100644
--- a/src/bindings/swig/wrapped/WrappedInterpreterMonitor.cpp
+++ b/src/bindings/swig/wrapped/WrappedInterpreterMonitor.cpp
@@ -30,31 +30,31 @@ using namespace XERCESC_NS;
WrappedInterpreterMonitor::WrappedInterpreterMonitor() {}
WrappedInterpreterMonitor::~WrappedInterpreterMonitor() {}
-void WrappedInterpreterMonitor::beforeExitingState(const XERCESC_NS::DOMElement* state) {
+void WrappedInterpreterMonitor::beforeExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) {
std::stringstream ss;
ss << *state;
beforeExitingState(ATTR(state, "id"), DOMUtils::xPathForNode(state), ss.str());
}
-void WrappedInterpreterMonitor::afterExitingState(const XERCESC_NS::DOMElement* state) {
+void WrappedInterpreterMonitor::afterExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) {
std::stringstream ss;
ss << *state;
afterExitingState(ATTR(state, "id"), DOMUtils::xPathForNode(state), ss.str());
}
-void WrappedInterpreterMonitor::beforeExecutingContent(const XERCESC_NS::DOMElement* content) {
+void WrappedInterpreterMonitor::beforeExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* content) {
std::stringstream ss;
ss << *content;
beforeExecutingContent(TAGNAME(content), DOMUtils::xPathForNode(content), ss.str());
}
-void WrappedInterpreterMonitor::afterExecutingContent(const XERCESC_NS::DOMElement* content) {
+void WrappedInterpreterMonitor::afterExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* content) {
std::stringstream ss;
ss << *content;
afterExecutingContent(TAGNAME(content), DOMUtils::xPathForNode(content), ss.str());
}
-void WrappedInterpreterMonitor::beforeUninvoking(const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
+void WrappedInterpreterMonitor::beforeUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
std::stringstream ss;
ss << *invoker;
std::string invokeId;
@@ -65,7 +65,7 @@ void WrappedInterpreterMonitor::beforeUninvoking(const XERCESC_NS::DOMElement* i
beforeUninvoking(DOMUtils::xPathForNode(invoker), invokeId, ss.str());
}
-void WrappedInterpreterMonitor::afterUninvoking(const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
+void WrappedInterpreterMonitor::afterUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
std::stringstream ss;
ss << *invoker;
std::string invokeId;
@@ -76,7 +76,7 @@ void WrappedInterpreterMonitor::afterUninvoking(const XERCESC_NS::DOMElement* in
afterUninvoking(DOMUtils::xPathForNode(invoker), invokeId, ss.str());
}
-void WrappedInterpreterMonitor::beforeTakingTransition(const XERCESC_NS::DOMElement* transition) {
+void WrappedInterpreterMonitor::beforeTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) {
XERCESC_NS::DOMElement* sourceState = getSourceState(transition);
const XERCESC_NS::DOMElement* root = DOMUtils::getNearestAncestor(transition, "scxml");
@@ -93,7 +93,7 @@ void WrappedInterpreterMonitor::beforeTakingTransition(const XERCESC_NS::DOMElem
beforeTakingTransition(DOMUtils::xPathForNode(transition), ATTR_CAST(sourceState, "id"), targets, ss.str());
}
-void WrappedInterpreterMonitor::afterTakingTransition(const XERCESC_NS::DOMElement* transition) {
+void WrappedInterpreterMonitor::afterTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) {
XERCESC_NS::DOMElement* sourceState = getSourceState(transition);
const XERCESC_NS::DOMElement* root = DOMUtils::getNearestAncestor(transition, "scxml");
@@ -110,19 +110,19 @@ void WrappedInterpreterMonitor::afterTakingTransition(const XERCESC_NS::DOMEleme
afterTakingTransition(DOMUtils::xPathForNode(transition), ATTR_CAST(sourceState, "id"), targets, ss.str());
}
-void WrappedInterpreterMonitor::beforeEnteringState(const XERCESC_NS::DOMElement* state) {
+void WrappedInterpreterMonitor::beforeEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) {
std::stringstream ss;
ss << *state;
beforeEnteringState(ATTR(state, "id"), DOMUtils::xPathForNode(state), ss.str());
}
-void WrappedInterpreterMonitor::afterEnteringState(const XERCESC_NS::DOMElement* state) {
+void WrappedInterpreterMonitor::afterEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) {
std::stringstream ss;
ss << *state;
afterEnteringState(ATTR(state, "id"), DOMUtils::xPathForNode(state), ss.str());
}
-void WrappedInterpreterMonitor::beforeInvoking(const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
+void WrappedInterpreterMonitor::beforeInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
std::stringstream ss;
ss << *invoker;
std::string invokeId;
@@ -133,7 +133,7 @@ void WrappedInterpreterMonitor::beforeInvoking(const XERCESC_NS::DOMElement* inv
beforeInvoking(DOMUtils::xPathForNode(invoker), invokeId, ss.str());
}
-void WrappedInterpreterMonitor::afterInvoking(const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
+void WrappedInterpreterMonitor::afterInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invoker, const std::string& invokeid) {
std::stringstream ss;
ss << *invoker;
std::string invokeId;
diff --git a/src/bindings/swig/wrapped/WrappedInterpreterMonitor.h b/src/bindings/swig/wrapped/WrappedInterpreterMonitor.h
index e83c896..c5655cf 100644
--- a/src/bindings/swig/wrapped/WrappedInterpreterMonitor.h
+++ b/src/bindings/swig/wrapped/WrappedInterpreterMonitor.h
@@ -44,82 +44,91 @@ public:
WrappedInterpreterMonitor();
virtual ~WrappedInterpreterMonitor();
- void beforeExitingState(const XERCESC_NS::DOMElement* state);
+ void beforeExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
virtual void beforeExitingState(const std::string& stateId,
const std::string& xpath,
const std::string& stateXML) {}
- void afterExitingState(const XERCESC_NS::DOMElement* state);
+ void afterExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state);
virtual void afterExitingState(const std::string& stateId,
const std::string& xpath,
const std::string& stateXML) {}
- void beforeExecutingContent(const XERCESC_NS::DOMElement* content);
+ void beforeExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* content);
virtual void beforeExecutingContent(const std::string& tagName,
const std::string& xpath,
const std::string& contentXML) {}
- void afterExecutingContent(const XERCESC_NS::DOMElement* content);
+ void afterExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* content);
virtual void afterExecutingContent(const std::string& tagName,
const std::string& xpath,
const std::string& contentXML) {}
- void beforeUninvoking(const XERCESC_NS::DOMElement* invoker,
+ void beforeUninvoking(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* invoker,
const std::string& invokeid);
virtual void beforeUninvoking(const std::string& xpath,
const std::string& invokeid,
const std::string& invokerXML) {}
- void afterUninvoking(const XERCESC_NS::DOMElement* invoker,
+ void afterUninvoking(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* invoker,
const std::string& invokeid);
virtual void afterUninvoking(const std::string& xpath,
const std::string& invokeid,
const std::string& invokerXML) {}
- void beforeTakingTransition(const XERCESC_NS::DOMElement* transition);
+ void beforeTakingTransition(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* transition);
virtual void beforeTakingTransition(const std::string& xpath,
const std::string& source,
const std::list<std::string>& targets,
const std::string& transitionXML) {}
- void afterTakingTransition(const XERCESC_NS::DOMElement* transition);
+ void afterTakingTransition(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* transition);
virtual void afterTakingTransition(const std::string& xpath,
const std::string& source,
const std::list<std::string>& targets,
const std::string& transitionXML) {}
- void beforeEnteringState(const XERCESC_NS::DOMElement* state);
+ void beforeEnteringState(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* state);
virtual void beforeEnteringState(const std::string& stateId,
const std::string& xpath,
const std::string& stateXML) {}
- void afterEnteringState(const XERCESC_NS::DOMElement* state);
+ void afterEnteringState(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* state);
virtual void afterEnteringState(const std::string& stateId,
const std::string& xpath,
const std::string& stateXML) {}
- void beforeInvoking(const XERCESC_NS::DOMElement* invoker,
+ void beforeInvoking(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* invoker,
const std::string& invokeid);
virtual void beforeInvoking(const std::string& xpath,
const std::string& invokeid,
const std::string& invokerXML) {}
- void afterInvoking(const XERCESC_NS::DOMElement* invoker,
+ void afterInvoking(InterpreterImpl* impl,
+ const XERCESC_NS::DOMElement* invoker,
const std::string& invokeid);
virtual void afterInvoking(const std::string& xpath,
const std::string& invokeid,
const std::string& invokerXML) {}
- virtual void reportIssue(const InterpreterIssue& issue) {}
+ virtual void reportIssue(InterpreterImpl* impl,
+ const InterpreterIssue& issue) {}
};
}