From 5f4f3f003e1f08e5495e0fe30fae18eb6029888d Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sun, 20 Apr 2014 23:30:25 +0200 Subject: Switched filesystem interaction code to boost::filesystem * while plain read access on files is doesn't require boost::filesystem it will greatly simplify the implementation of external directory traversal functions * it also improves the portability of relative path construction --- src/function/read_xml_file.h | 6 +++--- 1 file changed, 3 insertions(+), 3 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 c755852..6877feb 100644 --- a/src/function/read_xml_file.h +++ b/src/function/read_xml_file.h @@ -1,14 +1,14 @@ #ifndef INPUTXSLT_SRC_FUNCTION_READ_XML_FILE_H_ #define INPUTXSLT_SRC_FUNCTION_READ_XML_FILE_H_ -#include -#include #include #include #include #include #include +#include "boost/filesystem.hpp" + #include #include "common.h" @@ -33,7 +33,7 @@ class FunctionReadXmlFile : public xalan::Function { bool operator==(const FunctionReadXmlFile&) const = delete; private: - const std::string path_; + const boost::filesystem::path path_; mutable xalan::XercesParserLiaison parser_; const xalan::XalanDOMString& getError(xalan::XalanDOMString& result) const; -- cgit v1.2.3