blob: 6322da61e0bf16593056ad56fbbc6c86c1022d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  | 
#ifndef INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_
#define INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_
#include <xalanc/XalanDOM/XalanDOMString.hpp>
#include <xalanc/XPath/Function.hpp>
#include "boost/filesystem.hpp"
#include <string>
#include <functional>
#include "common.h"
namespace InputXSLT {
class FilesystemContext {
	public:
		explicit FilesystemContext(const xalan::Locator*);
		explicit FilesystemContext(const std::string&);
		boost::filesystem::path resolve(const std::string&) const;
		boost::filesystem::path resolve(const xalan::XalanDOMString&) const;
		void iterate(const boost::filesystem::path&,
		             std::function<void(const boost::filesystem::path&)>) const;
		void iterate(const std::string&,
		             std::function<void(const boost::filesystem::path&)>) const;
		void iterate(const xalan::XalanDOMString&,
		             std::function<void(const boost::filesystem::path&)>) const;
	private:
		const boost::filesystem::path path_;
};
}
#endif  // INPUTXSLT_SRC_SUPPORT_FILESYSTEM_CONTEXT_H_
 
  |