From 5f6fc45749b99e9013f04c95a525f2d627db01bf Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 7 Jun 2014 17:24:44 +0200 Subject: Improved FunctionBase constructDocument parameter propagation * replaced std::tuple constructing Mapper template methods with direct XObjectArgVectorType unpacking ** XObjectValue::get template method is applied directly using parameter pack unpacking * implemented custom IndexSequence / Sequence type to provide vector indexes * modified all external functions to provide matching constructDocument overloads --- src/function/transform.cc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/function/transform.cc') diff --git a/src/function/transform.cc b/src/function/transform.cc index 844dee9..7e6207c 100644 --- a/src/function/transform.cc +++ b/src/function/transform.cc @@ -30,19 +30,12 @@ namespace InputXSLT { xercesc::DOMDocument* FunctionTransform::constructDocument( const InputXSLT::FilesystemContext& fsContext, - const FunctionBase::parameter_tuple& parameters + std::string transformationPath, + std::string targetPath, + xalan::XObjectPtr parameterObject ) { - const std::string transformationPath( - fsContext.resolve(std::get<0>(parameters)).string() - ); - - const std::string targetPath( - fsContext.resolve(std::get<1>(parameters)).string() - ); - - const xalan::XObjectPtr& parameterObject( - std::get<2>(parameters) - ); + transformationPath = fsContext.resolve(transformationPath).string(); + targetPath = fsContext.resolve(targetPath).string(); xercesc::DOMDocument* const domDocument( xercesc::DOMImplementation::getImplementation()->createDocument( -- cgit v1.2.3