aboutsummaryrefslogtreecommitdiff
path: root/src/function/read_directory.h
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-25 17:44:32 +0200
committerAdrian Kummerländer2014-04-25 17:44:32 +0200
commit938ed7622656c3494ae8fdb83bc2ad4b1f31d901 (patch)
tree75ef069d66ce3709139955cccaa05b531fa6f9a0 /src/function/read_directory.h
parent78d3873061f1a974da4d0ccdcc1778c6a11139e8 (diff)
downloadInputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar.gz
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar.bz2
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar.lz
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar.xz
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.tar.zst
InputXSLT-938ed7622656c3494ae8fdb83bc2ad4b1f31d901.zip
Improved argument resolution and error handling
* execute member method internal argument count checks are not needed when using between one and two arguments ** xalan automatically generates the appropriate message containing the getError message when only offered fixed argument execute member overloads * improved FunctionReadDirectory attribute element generation * added additional validations to FunctionReadFile and FunctionReadXMLFile * I plan to return errors inside a DOM tree alongside the function return values in the future
Diffstat (limited to 'src/function/read_directory.h')
-rw-r--r--src/function/read_directory.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/function/read_directory.h b/src/function/read_directory.h
index 3c55591..782ebed 100644
--- a/src/function/read_directory.h
+++ b/src/function/read_directory.h
@@ -22,7 +22,7 @@ class FunctionReadDirectory : public xalan::Function {
virtual xalan::XObjectPtr execute(
xalan::XPathExecutionContext&,
xalan::XalanNode*,
- const xalan::Function::XObjectArgVectorType&,
+ const xalan::XObjectPtr,
const xalan::Locator*
) const;
@@ -34,7 +34,9 @@ class FunctionReadDirectory : public xalan::Function {
private:
const FilesystemContext& fs_context_;
- std::shared_ptr<std::stack<DomDocumentGuard>> documents_;
+ std::shared_ptr<
+ std::stack<DomDocumentGuard>
+ > documents_;
const xalan::XalanDOMString& getError(xalan::XalanDOMString&) const;