diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-02-08 12:26:42 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-02-08 12:26:42 (GMT) |
commit | 71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7 (patch) | |
tree | 57a294052ce41ed131f458d4fb083fce3b743ef4 /src/uscxml/plugins/invoker/sqlite3 | |
parent | 275bf3fd017ca27c021d4c10cc9d3d82fff13922 (diff) | |
download | uscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.zip uscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.tar.gz uscxml-71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7.tar.bz2 |
Fixed history
Diffstat (limited to 'src/uscxml/plugins/invoker/sqlite3')
-rw-r--r-- | src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.cpp | 44 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.h | 40 |
2 files changed, 84 insertions, 0 deletions
diff --git a/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.cpp b/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.cpp new file mode 100644 index 0000000..e217eaa --- /dev/null +++ b/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.cpp @@ -0,0 +1,44 @@ +#include "Sqlite3Invoker.h" +#include <glog/logging.h> + +#ifdef BUILD_AS_PLUGINS +#include <Pluma/Connector.hpp> +#endif + +namespace uscxml { + +#ifdef BUILD_AS_PLUGINS +PLUMA_CONNECTOR +bool connect(pluma::Host& host) { + host.add( new Sqlite3InvokerProvider() ); + return true; +} +#endif + +Sqlite3Invoker::Sqlite3Invoker() { +} + +Sqlite3Invoker::~Sqlite3Invoker() { +}; + +boost::shared_ptr<IOProcessorImpl> Sqlite3Invoker::create(Interpreter* interpreter) { + boost::shared_ptr<Sqlite3Invoker> invoker = boost::shared_ptr<Sqlite3Invoker>(new Sqlite3Invoker()); + invoker->_interpreter = interpreter; + return invoker; +} + +Data Sqlite3Invoker::getDataModelVariables() { + Data data; + return data; +} + +void Sqlite3Invoker::send(const SendRequest& req) { +} + +void Sqlite3Invoker::cancel(const std::string sendId) { +} + +void Sqlite3Invoker::invoke(const InvokeRequest& req) { +} + +}
\ No newline at end of file diff --git a/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.h b/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.h new file mode 100644 index 0000000..f2ae915 --- /dev/null +++ b/src/uscxml/plugins/invoker/sqlite3/Sqlite3Invoker.h @@ -0,0 +1,40 @@ +#ifndef SQLITE3INVOKER_H_W09J90F0 +#define SQLITE3INVOKER_H_W09J90F0 + +#include <uscxml/Interpreter.h> + +#ifdef BUILD_AS_PLUGINS +#include "uscxml/plugins/Plugins.h" +#endif + +namespace uscxml { + +class Sqlite3Invoker : public InvokerImpl { +public: + Sqlite3Invoker(); + virtual ~Sqlite3Invoker(); + virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter); + + virtual std::set<std::string> getNames() { + std::set<std::string> names; + names.insert("sqlite3"); + names.insert("http://uscxml.tk.informatik.tu-darmstadt.de/#sqlite3"); + return names; + } + + virtual Data getDataModelVariables(); + virtual void send(const SendRequest& req); + virtual void cancel(const std::string sendId); + virtual void invoke(const InvokeRequest& req); + +protected: +}; + +#ifdef BUILD_AS_PLUGINS +PLUMA_INHERIT_PROVIDER(Sqlite3Invoker, Invoker); +#endif + +} + + +#endif /* end of include guard: SQLITE3INVOKER_H_W09J90F0 */ |