aboutsummaryrefslogtreecommitdiff
path: root/src/support/include_entity_resolver.h
blob: 390cfe1f63592c981b70507927dd4d43ca3023eb (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
#ifndef INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_
#define INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_

#include <xercesc/sax/EntityResolver.hpp>
#include <xercesc/sax/InputSource.hpp>

#include <string>
#include <vector>

#include "filesystem_context.h"

namespace InputXSLT {

class IncludeEntityResolver : public xercesc::EntityResolver {
	public:
		IncludeEntityResolver(const std::vector<std::string>&);

		xercesc::InputSource* resolveEntity(
			const XMLCh* const,
			const XMLCh* const
		);

	private:
		std::vector<FilesystemContext> path_;

};

}

#endif  // INPUTXSLT_SRC_SUPPORT_INCLUDE_ENTITY_RESOLVER_H_