diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-20 08:00:41 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-20 08:00:41 (GMT) |
commit | c6c1f3e2e333705bf7d54fffd4b18939a56f4ed8 (patch) | |
tree | 92af8be33c602a68d1912790cad657c2a012e2c0 /src/uscxml/plugins/invoker/system | |
parent | ccbf595c52fd705ec70abc774a29b153a7281334 (diff) | |
download | uscxml-c6c1f3e2e333705bf7d54fffd4b18939a56f4ed8.zip uscxml-c6c1f3e2e333705bf7d54fffd4b18939a56f4ed8.tar.gz uscxml-c6c1f3e2e333705bf7d54fffd4b18939a56f4ed8.tar.bz2 |
Started Syteminvoker
Diffstat (limited to 'src/uscxml/plugins/invoker/system')
-rw-r--r-- | src/uscxml/plugins/invoker/system/SystemInvoker.cpp | 44 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/system/SystemInvoker.h | 40 |
2 files changed, 84 insertions, 0 deletions
diff --git a/src/uscxml/plugins/invoker/system/SystemInvoker.cpp b/src/uscxml/plugins/invoker/system/SystemInvoker.cpp new file mode 100644 index 0000000..492d6d3 --- /dev/null +++ b/src/uscxml/plugins/invoker/system/SystemInvoker.cpp @@ -0,0 +1,44 @@ +#include "SystemInvoker.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 SystemInvokerProvider()); + return true; +} +#endif + +SystemInvoker::SystemInvoker() { +} + +SystemInvoker::~SystemInvoker() { +}; + +boost::shared_ptr<IOProcessorImpl> SystemInvoker::create(Interpreter* interpreter) { + boost::shared_ptr<SystemInvoker> invoker = boost::shared_ptr<SystemInvoker>(new SystemInvoker()); + invoker->_interpreter = interpreter; + return invoker; +} + +Data SystemInvoker::getDataModelVariables() { + Data data; + return data; +} + +void SystemInvoker::send(const SendRequest& req) { +} + +void SystemInvoker::cancel(const std::string sendId) { +} + +void SystemInvoker::invoke(const InvokeRequest& req) { +} + +}
\ No newline at end of file diff --git a/src/uscxml/plugins/invoker/system/SystemInvoker.h b/src/uscxml/plugins/invoker/system/SystemInvoker.h new file mode 100644 index 0000000..1440e79 --- /dev/null +++ b/src/uscxml/plugins/invoker/system/SystemInvoker.h @@ -0,0 +1,40 @@ +#ifndef SYSTEMINVOKER_H_W09J90F0 +#define SYSTEMINVOKER_H_W09J90F0 + +#include <uscxml/Interpreter.h> + +#ifdef BUILD_AS_PLUGINS +#include "uscxml/plugins/Plugins.h" +#endif + +namespace uscxml { + +class SystemInvoker : public InvokerImpl { +public: + SystemInvoker(); + virtual ~SystemInvoker(); + virtual boost::shared_ptr<IOProcessorImpl> create(Interpreter* interpreter); + + virtual std::set<std::string> getNames() { + std::set<std::string> names; + names.insert("system"); + names.insert("http://uscxml.tk.informatik.tu-darmstadt.de/#system"); + 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(SystemInvoker, Invoker); +#endif + +} + + +#endif /* end of include guard: SYSTEMINVOKER_H_W09J90F0 */ |