summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Factory.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-06 21:17:13 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-06 21:17:13 (GMT)
commit1e6ba139ac12c688f025745812d381915775b1fb (patch)
tree1d49070eddd4502ec6aa25a769ab7c47d04a1c30 /src/uscxml/Factory.h
parent139439f0675ec05e936fd4297086462037cd618e (diff)
downloaduscxml-1e6ba139ac12c688f025745812d381915775b1fb.zip
uscxml-1e6ba139ac12c688f025745812d381915775b1fb.tar.gz
uscxml-1e6ba139ac12c688f025745812d381915775b1fb.tar.bz2
See detailled log
Added new revised W3C tests Hide Interpreter via PIMPL Implemented SCXMLIOProcessor
Diffstat (limited to 'src/uscxml/Factory.h')
-rw-r--r--src/uscxml/Factory.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/uscxml/Factory.h b/src/uscxml/Factory.h
index 990b035..c396e63 100644
--- a/src/uscxml/Factory.h
+++ b/src/uscxml/Factory.h
@@ -33,15 +33,15 @@ inline bool isNumeric( const char* pszInput, int nNumberBase) {
return (input.find_first_not_of(base.substr(0, nNumberBase)) == std::string::npos);
}
-class Interpreter;
+class InterpreterImpl;
class ExecutableContentImpl {
public:
ExecutableContentImpl() {};
virtual ~ExecutableContentImpl() {};
- virtual boost::shared_ptr<ExecutableContentImpl> create(Interpreter* interpreter) = 0;
+ virtual boost::shared_ptr<ExecutableContentImpl> create(InterpreterImpl* interpreter) = 0;
- virtual void setInterpreter(Interpreter* interpreter) {
+ virtual void setInterpreter(InterpreterImpl* interpreter) {
_interpreter = interpreter;
}
@@ -52,7 +52,7 @@ public:
virtual bool processChildren() = 0; ///< Whether or not the interpreter should process this elements children.
protected:
- Interpreter* _interpreter;
+ InterpreterImpl* _interpreter;
};
class ExecutableContent {
@@ -79,7 +79,7 @@ public:
return *this;
}
- void setInterpreter(Interpreter* interpreter) {
+ void setInterpreter(InterpreterImpl* interpreter) {
_impl->setInterpreter(interpreter);
}
@@ -107,10 +107,10 @@ class IOProcessorImpl {
public:
IOProcessorImpl() {};
virtual ~IOProcessorImpl() {};
- virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter) = 0;
+ virtual boost::shared_ptr<IOProcessorImpl> create(InterpreterImpl* interpreter) = 0;
virtual std::set<std::string> getNames() = 0;
- virtual void setInterpreter(Interpreter* interpreter) {
+ virtual void setInterpreter(InterpreterImpl* interpreter) {
_interpreter = interpreter;
}
void setInvokeId(const std::string& invokeId) {
@@ -128,7 +128,7 @@ public:
void returnEvent(Event& event);
protected:
- Interpreter* _interpreter;
+ InterpreterImpl* _interpreter;
std::string _invokeId;
std::string _type;
};
@@ -171,7 +171,7 @@ public:
return _impl->runOnMainThread();
}
- void setInterpreter(Interpreter* interpreter) {
+ void setInterpreter(InterpreterImpl* interpreter) {
_impl->setInterpreter(interpreter);
}
void setInvokeId(const std::string& invokeId) {
@@ -183,13 +183,13 @@ public:
protected:
boost::shared_ptr<IOProcessorImpl> _impl;
- friend class Interpreter;
+ friend class InterpreterImpl;
};
class InvokerImpl : public IOProcessorImpl {
public:
virtual void invoke(const InvokeRequest& req) = 0;
- virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter) = 0;
+ virtual boost::shared_ptr<IOProcessorImpl> create(InterpreterImpl* interpreter) = 0;
};
class Invoker : public IOProcessor {
@@ -228,7 +228,7 @@ protected:
class DataModelImpl {
public:
virtual ~DataModelImpl() {}
- virtual boost::shared_ptr<DataModelImpl> create(Interpreter* interpreter) = 0;
+ virtual boost::shared_ptr<DataModelImpl> create(InterpreterImpl* interpreter) = 0;
virtual std::set<std::string> getNames() = 0;
virtual bool validate(const std::string& location, const std::string& schema) = 0;
@@ -249,7 +249,7 @@ public:
virtual bool isDeclared(const std::string& expr) = 0;
protected:
- Interpreter* _interpreter;
+ InterpreterImpl* _interpreter;
};
class DataModel {
@@ -332,10 +332,10 @@ public:
void registerInvoker(InvokerImpl* invoker);
void registerExecutableContent(ExecutableContentImpl* executableContent);
- static boost::shared_ptr<DataModelImpl> createDataModel(const std::string& type, Interpreter* interpreter);
- static boost::shared_ptr<IOProcessorImpl> createIOProcessor(const std::string& type, Interpreter* interpreter);
- static boost::shared_ptr<InvokerImpl> createInvoker(const std::string& type, Interpreter* interpreter);
- static boost::shared_ptr<ExecutableContentImpl> createExecutableContent(const std::string& localName, const std::string& nameSpace, Interpreter* interpreter);
+ static boost::shared_ptr<DataModelImpl> createDataModel(const std::string& type, InterpreterImpl* interpreter);
+ static boost::shared_ptr<IOProcessorImpl> createIOProcessor(const std::string& type, InterpreterImpl* interpreter);
+ static boost::shared_ptr<InvokerImpl> createInvoker(const std::string& type, InterpreterImpl* interpreter);
+ static boost::shared_ptr<ExecutableContentImpl> createExecutableContent(const std::string& localName, const std::string& nameSpace, InterpreterImpl* interpreter);
static Factory* getInstance();