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_file.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/function/read_file.h') diff --git a/src/function/read_file.h b/src/function/read_file.h index f5bdb9d..b88336a 100644 --- a/src/function/read_file.h +++ b/src/function/read_file.h @@ -6,17 +6,16 @@ #include #include -#include "boost/filesystem.hpp" - #include #include "common.h" +#include "support/filesystem_context.h" namespace InputXSLT { class FunctionReadFile : public xalan::Function { public: - FunctionReadFile(const std::string&); + FunctionReadFile(const FilesystemContext&); virtual xalan::XObjectPtr execute( xalan::XPathExecutionContext&, @@ -31,7 +30,7 @@ class FunctionReadFile : public xalan::Function { bool operator==(const FunctionReadFile&) const = delete; private: - const boost::filesystem::path path_; + const FilesystemContext& fs_context_; const xalan::XalanDOMString& getError(xalan::XalanDOMString&) const; -- cgit v1.2.3