blob: cb3edd4b20e8849d3e4aaee61cb16a2417c0af66 (
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
|
#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 <functional>
#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;
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_
|