From 86f8e73299e86b65affc1a71610dd061fa13bf5c Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Mon, 26 May 2014 19:49:44 +0200 Subject: Revamped external execute function into a external text formatter function * importing XML output of a called executable into the result document required special logic which clashed with a general execute function * general execute function may be implemented in the future ** support for external text formatters with XML output has a higher priority * current implementation enables calling a markdown parser and including the XHTML output into the document --- src/function/external_text_formatter.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/function/external_text_formatter.h (limited to 'src/function/external_text_formatter.h') diff --git a/src/function/external_text_formatter.h b/src/function/external_text_formatter.h new file mode 100644 index 0000000..877bac5 --- /dev/null +++ b/src/function/external_text_formatter.h @@ -0,0 +1,28 @@ +#ifndef INPUTXSLT_SRC_FUNCTION_EXTERNAL_TEXT_FORMATTER_H_ +#define INPUTXSLT_SRC_FUNCTION_EXTERNAL_TEXT_FORMATTER_H_ + +#include "base.h" + +namespace InputXSLT { + +class FunctionExternalTextFormatter : public FunctionBase< + FunctionExternalTextFormatter, + std::string, + std::string +> { + public: + using FunctionBase::FunctionBase; + + protected: + friend FunctionBase; + + xercesc::DOMDocument* constructDocument( + const FilesystemContext&, + const FunctionBase::parameter_tuple& + ); + +}; + +} + +#endif // INPUTXSLT_SRC_FUNCTION_EXTERNAL_TEXT_FORMATTER_H_ -- cgit v1.2.3