summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Factory.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-09 22:51:16 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-09 22:51:16 (GMT)
commit8a9b432d36e5748898abffe9f1607d93e45bab4b (patch)
tree0b95e832a9b3b2daf9ae45bf81084eda580752a0 /src/uscxml/Factory.h
parent7d98ac1fd2e9da3162f3b6d38b22106f463edd9d (diff)
downloaduscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.zip
uscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.tar.gz
uscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.tar.bz2
Started with promela datamodel
Diffstat (limited to 'src/uscxml/Factory.h')
-rw-r--r--src/uscxml/Factory.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/uscxml/Factory.h b/src/uscxml/Factory.h
index 0011547..9997b15 100644
--- a/src/uscxml/Factory.h
+++ b/src/uscxml/Factory.h
@@ -123,6 +123,14 @@ public:
_type = type;
}
+ void setElement(const Arabica::DOM::Element<std::string>& element) {
+ _element = element;
+ }
+
+ Arabica::DOM::Element<std::string> getElement() {
+ return _element;
+ }
+
virtual Data getDataModelVariables() = 0;
virtual void send(const SendRequest& req) = 0;
@@ -133,6 +141,7 @@ public:
protected:
InterpreterImpl* _interpreter;
+ Arabica::DOM::Element<std::string> _element;
std::string _invokeId;
std::string _type;
@@ -169,6 +178,14 @@ public:
_impl->setType(type);
}
+ void setElement(const Arabica::DOM::Element<std::string>& element) {
+ _impl->setElement(element);
+ }
+
+ Arabica::DOM::Element<std::string> getElement() {
+ return _impl->getElement();
+ }
+
protected:
boost::shared_ptr<EventHandlerImpl> _impl;
friend class InterpreterImpl;
@@ -299,6 +316,8 @@ public:
_interpreter = interpreter;
}
+ virtual std::string andExpressions(std::list<std::string>) { return ""; }
+
// we need it public for various static functions
InterpreterImpl* _interpreter;
};
@@ -399,6 +418,10 @@ public:
return _impl->replaceExpressions(content);
}
+ std::string andExpressions(std::list<std::string> expressions) {
+ return _impl->andExpressions(expressions);
+ }
+
virtual void setInterpreter(InterpreterImpl* interpreter) {
_impl->setInterpreter(interpreter);
}