From cdf4ad3486debe75fe89b2f04bb62541f3ac8405 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Mon, 21 Apr 2014 13:30:23 +0200 Subject: Extracted filesystem path resolution into InputXSLT::FilesystemContext * this class provides methods for resolving paths relative to the contained base path * other filesystem interaction methods will also be implemented in this class ** for instance directory traversal --- src/function/read_xml_file.h | 7 +++---- 1 file changed, 3 insertions(+), 4 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 6877feb..aa8590a 100644 --- a/src/function/read_xml_file.h +++ b/src/function/read_xml_file.h @@ -7,17 +7,16 @@ #include #include -#include "boost/filesystem.hpp" - #include #include "common.h" +#include "support/filesystem_context.h" namespace InputXSLT { class FunctionReadXmlFile : public xalan::Function { public: - FunctionReadXmlFile(const std::string&); + FunctionReadXmlFile(const FilesystemContext&); FunctionReadXmlFile(const FunctionReadXmlFile&); virtual xalan::XObjectPtr execute( @@ -33,7 +32,7 @@ class FunctionReadXmlFile : public xalan::Function { bool operator==(const FunctionReadXmlFile&) const = delete; private: - const boost::filesystem::path path_; + const FilesystemContext& fs_context_; mutable xalan::XercesParserLiaison parser_; const xalan::XalanDOMString& getError(xalan::XalanDOMString& result) const; -- cgit v1.2.3