aboutsummaryrefslogtreecommitdiff
path: root/src/function/transform.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-15 17:23:13 +0200
committerAdrian Kummerländer2014-05-15 17:23:13 +0200
commitec6abad74348e9b577e1dd63b41d65263bb0334a (patch)
tree95d35491c723b12687e067ee2a480b37daf19da2 /src/function/transform.h
parent5fbca0993146982ab1dbb0d352c1e15e40b3de22 (diff)
downloadInputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar.gz
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar.bz2
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar.lz
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar.xz
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.tar.zst
InputXSLT-ec6abad74348e9b577e1dd63b41d65263bb0334a.zip
Adapted FunctionBase template to accept multiple argument types
* FunctionBase::argument_tuple is a std::tuple specialization type specialized on the argument types passed inside the variadic template argument of FunctionBase * added tuple Mapper and XObjectValue helper namespaces containing recursive tuple construction and XObjectPtr value extraction logic * changed all external function implementations accordingly * this change was implemented to uniformly support different external function argument types than std::string
Diffstat (limited to 'src/function/transform.h')
-rw-r--r--src/function/transform.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/function/transform.h b/src/function/transform.h
index fc735f0..2be8925 100644
--- a/src/function/transform.h
+++ b/src/function/transform.h
@@ -5,7 +5,11 @@
namespace InputXSLT {
-class FunctionTransform : public FunctionBase<FunctionTransform, 2> {
+class FunctionTransform : public FunctionBase<
+ FunctionTransform,
+ std::string,
+ std::string
+> {
public:
using FunctionBase::FunctionBase;
@@ -14,7 +18,7 @@ class FunctionTransform : public FunctionBase<FunctionTransform, 2> {
xercesc::DOMDocument* constructDocument(
const FilesystemContext&,
- const FunctionBase::argument_array&
+ const FunctionBase::argument_tuple&
);
};