aboutsummaryrefslogtreecommitdiff
path: root/src/function/execute.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-25 21:49:59 +0200
committerAdrian Kummerländer2014-05-25 21:49:59 +0200
commitc5a11763985172f54d0da8a2a2778f882f3656e5 (patch)
tree2a2eb165424ecf91b0b229d36de1da79e4bdbaa3 /src/function/execute.h
parentbf88fb942d624f40218716d375744aa14b3406a8 (diff)
downloadInputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar.gz
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar.bz2
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar.lz
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar.xz
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.tar.zst
InputXSLT-c5a11763985172f54d0da8a2a2778f882f3656e5.zip
Implemented basic external "execute" function
* enables execution of external programs ** second parameter is passed to stdin ** stdout is captured and returned ** based on booost::process * this was implemented to enable access to external content preprocessors such as markdown
Diffstat (limited to 'src/function/execute.h')
-rw-r--r--src/function/execute.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/function/execute.h b/src/function/execute.h
new file mode 100644
index 0000000..12167da
--- /dev/null
+++ b/src/function/execute.h
@@ -0,0 +1,28 @@
+#ifndef INPUTXSLT_SRC_FUNCTION_EXECUTE_H_
+#define INPUTXSLT_SRC_FUNCTION_EXECUTE_H_
+
+#include "base.h"
+
+namespace InputXSLT {
+
+class FunctionExecute : public FunctionBase<
+ FunctionExecute,
+ std::string,
+ std::string
+> {
+ public:
+ using FunctionBase::FunctionBase;
+
+ protected:
+ friend FunctionBase;
+
+ xercesc::DOMDocument* constructDocument(
+ const FilesystemContext&,
+ const FunctionBase::parameter_tuple&
+ );
+
+};
+
+}
+
+#endif // INPUTXSLT_SRC_FUNCTION_EXECUTE_H_