aboutsummaryrefslogtreecommitdiff
path: root/src/support/filesystem_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/filesystem_context.h')
-rw-r--r--src/support/filesystem_context.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/support/filesystem_context.h b/src/support/filesystem_context.h
new file mode 100644
index 0000000..d5836f1
--- /dev/null
+++ b/src/support/filesystem_context.h
@@ -0,0 +1,28 @@
+#ifndef INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_
+#define INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_
+
+#include <xalanc/XalanDOM/XalanDOMString.hpp>
+
+#include "boost/filesystem.hpp"
+
+#include <string>
+
+#include "common.h"
+
+namespace InputXSLT {
+
+class FilesystemContext {
+ public:
+ explicit FilesystemContext(const std::string&);
+
+ boost::filesystem::path resolve(const std::string&) const;
+ boost::filesystem::path resolve(const xalan::XalanDOMString&) const;
+
+ private:
+ const boost::filesystem::path path_;
+
+};
+
+}
+
+#endif // INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_