From ec6abad74348e9b577e1dd63b41d65263bb0334a Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 15 May 2014 17:23:13 +0200 Subject: 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 --- src/function/read_xml_file.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/function/read_xml_file.h') diff --git a/src/function/read_xml_file.h b/src/function/read_xml_file.h index 423f0a2..5355449 100644 --- a/src/function/read_xml_file.h +++ b/src/function/read_xml_file.h @@ -5,7 +5,10 @@ namespace InputXSLT { -class FunctionReadXmlFile : public FunctionBase { +class FunctionReadXmlFile : public FunctionBase< + FunctionReadXmlFile, + std::string +> { public: using FunctionBase::FunctionBase; @@ -14,7 +17,7 @@ class FunctionReadXmlFile : public FunctionBase { xercesc::DOMDocument* constructDocument( const FilesystemContext&, - const FunctionBase::argument_array& + const FunctionBase::argument_tuple& ); }; -- cgit v1.2.3