diff options
author | Adrian Kummerländer | 2014-04-21 13:30:23 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-04-21 13:30:23 +0200 |
commit | cdf4ad3486debe75fe89b2f04bb62541f3ac8405 (patch) | |
tree | b09b380ca22abe5678079f86420c748dcd82c70d /src/function/read_file.h | |
parent | 5f4f3f003e1f08e5495e0fe30fae18eb6029888d (diff) | |
download | InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar.gz InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar.bz2 InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar.lz InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar.xz InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.tar.zst InputXSLT-cdf4ad3486debe75fe89b2f04bb62541f3ac8405.zip |
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
Diffstat (limited to 'src/function/read_file.h')
-rw-r--r-- | src/function/read_file.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 <xalanc/XPath/Function.hpp> #include <xalanc/XPath/XObject.hpp> -#include "boost/filesystem.hpp" - #include <string> #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; |