diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-06-12 14:37:12 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-06-12 14:37:12 (GMT) |
commit | bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557 (patch) | |
tree | 5c3e73450534bd8b4279d20f0171dcfb45167786 /src/uscxml/plugins/Factory.cpp | |
parent | 090016a3f5bcd66d6265fe1504430430f1dee7ed (diff) | |
download | uscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.zip uscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.tar.gz uscxml-bfdd2f8e72005d1e2ef2a87d19d8ac242bb22557.tar.bz2 |
respond element and proper http ioproc
Diffstat (limited to 'src/uscxml/plugins/Factory.cpp')
-rw-r--r-- | src/uscxml/plugins/Factory.cpp | 24 |
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; } |