aboutsummaryrefslogtreecommitdiff
path: root/src/function/external_text_formatter.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-26 19:49:44 +0200
committerAdrian Kummerländer2014-05-26 19:49:44 +0200
commit86f8e73299e86b65affc1a71610dd061fa13bf5c (patch)
treee76856cd0f3b07638a4b73c7695014a39523f43a /src/function/external_text_formatter.h
parentc5a11763985172f54d0da8a2a2778f882f3656e5 (diff)
downloadInputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar.gz
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar.bz2
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar.lz
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar.xz
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.tar.zst
InputXSLT-86f8e73299e86b65affc1a71610dd061fa13bf5c.zip
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
Diffstat (limited to 'src/function/external_text_formatter.h')
-rw-r--r--src/function/external_text_formatter.h28
1 files changed, 28 insertions, 0 deletions
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_