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_xml_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_xml_file.h')
-rw-r--r-- | src/function/read_xml_file.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 <xalanc/XPath/XObject.hpp> #include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp> -#include "boost/filesystem.hpp" - #include <string> #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; |