summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/Factory.cpp
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-06-13 10:19:24 (GMT)
committerGitHub <noreply@github.com>2017-06-13 10:19:24 (GMT)
commitb3a2d91805feb81f79ee52c30a077521912b0bf9 (patch)
tree8b57e9244576eaa1c721df44899009f3b8d10f05 /src/uscxml/plugins/Factory.cpp
parent4b861a6af4eec8a58d3515e871ccdadd44a182fd (diff)
parenta43c42980727e0376c6bfa44576a54e6d3c26687 (diff)
downloaduscxml-b3a2d91805feb81f79ee52c30a077521912b0bf9.zip
uscxml-b3a2d91805feb81f79ee52c30a077521912b0bf9.tar.gz
uscxml-b3a2d91805feb81f79ee52c30a077521912b0bf9.tar.bz2
Merge pull request #146 from tklab-tud/sradomski
respond element and proper http ioproc
Diffstat (limited to 'src/uscxml/plugins/Factory.cpp')
-rw-r--r--src/uscxml/plugins/Factory.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/uscxml/plugins/Factory.cpp b/src/uscxml/plugins/Factory.cpp
index 6ca599c..4c67d1f 100644
--- a/src/uscxml/plugins/Factory.cpp
+++ b/src/uscxml/plugins/Factory.cpp
@@ -56,6 +56,14 @@
# include "uscxml/plugins/ioprocessor/basichttp/BasicHTTPIOProcessor.h"
#endif
+#ifdef WITH_IOPROC_HTTP
+# include "uscxml/plugins/ioprocessor/http/HTTPIOProcessor.h"
+#endif
+
+#ifdef WITH_ELEMENT_RESPOND
+# include "uscxml/plugins/element/respond/RespondElement.h"
+#endif
+
#include "uscxml/plugins/datamodel/null/NullDataModel.h"
#if defined WITH_DM_ECMA_V8
@@ -181,6 +189,21 @@ void Factory::registerPlugins() {
}
#endif
+#ifdef WITH_IOPROC_HTTP
+ {
+ HTTPIOProcessor* ioProcessor = new HTTPIOProcessor();
+ registerIOProcessor(ioProcessor);
+ }
+#endif
+
+#ifdef WITH_ELEMENT_RESPOND
+ {
+ RespondElement* element = new RespondElement();
+ registerExecutableContent(element);
+ }
+
+#endif
+
#ifdef WITH_DM_ECMA_V8
{
V8DataModel* dataModel = new V8DataModel();
@@ -458,7 +481,6 @@ std::shared_ptr<ExecutableContentImpl> Factory::createExecutableContent(const st
std::string actualNameSpace = (nameSpace.length() == 0 ? "http://www.w3.org/2005/07/scxml" : nameSpace);
if (_executableContent.find(std::make_pair(localName, actualNameSpace)) != _executableContent.end()) {
std::shared_ptr<ExecutableContentImpl> execContent = _executableContent[std::make_pair(localName, actualNameSpace)]->create(interpreter);
- execContent->setInterpreter(interpreter);
return execContent;
}