aboutsummaryrefslogtreecommitdiff
path: root/src/function/read_file.cc
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-14 16:41:58 +0200
committerAdrian Kummerländer2014-05-14 16:41:58 +0200
commit943768ad437011756395b86958399992e6822604 (patch)
treefca4a7f9672b9a7bc8b6691d841c24322a76083b /src/function/read_file.cc
parentb3bf487144a1a2978cc17d40b6d6ba1c0467fc37 (diff)
downloadInputXSLT-943768ad437011756395b86958399992e6822604.tar
InputXSLT-943768ad437011756395b86958399992e6822604.tar.gz
InputXSLT-943768ad437011756395b86958399992e6822604.tar.bz2
InputXSLT-943768ad437011756395b86958399992e6822604.tar.lz
InputXSLT-943768ad437011756395b86958399992e6822604.tar.xz
InputXSLT-943768ad437011756395b86958399992e6822604.tar.zst
InputXSLT-943768ad437011756395b86958399992e6822604.zip
Added ArgumentCount parameter to FunctionBase template
* constructDocument member method is provided with a FunctionBase::argument_array instance * improved argument validation in FunctionBase * this parameter was added to support FunctionBase as a base class for FunctionTransform
Diffstat (limited to 'src/function/read_file.cc')
-rw-r--r--src/function/read_file.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/function/read_file.cc b/src/function/read_file.cc
index 439d905..da0e988 100644
--- a/src/function/read_file.cc
+++ b/src/function/read_file.cc
@@ -26,8 +26,10 @@ namespace InputXSLT {
xercesc::DOMDocument* FunctionReadFile::constructDocument(
const FilesystemContext&,
- const boost::filesystem::path& filePath
+ const FunctionBase::argument_array& arguments
) {
+ const boost::filesystem::path& filePath = arguments[0];
+
xercesc::DOMDocument* const domDocument(
xercesc::DOMImplementation::getImplementation()->createDocument(
nullptr,