aboutsummaryrefslogtreecommitdiff
path: root/src/transformer_facade.h
blob: ed25edc78a0fa2da2206d2dd6ec2a602ecf32428 (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_TRANSFORMER_FACADE_H_
#define INPUTXSLT_SRC_TRANSFORMER_FACADE_H_

#include <string>

#include <xalanc/XalanTransformer/XalanTransformer.hpp>
#include <xalanc/XercesParserLiaison/XercesParserLiaison.hpp>

#include "common.h"
#include "support/filesystem_context.h"

namespace InputXSLT {

class TransformerFacade {
	public:
		TransformerFacade(const std::string&);

		int execute(const std::string&, const std::string&);

	private:
		const FilesystemContext fs_context_;
		mutable xalan::XercesParserLiaison parser_;

		xalan::XalanTransformer transformer_;

};

}

#endif  // INPUTXSLT_SRC_TRANSFORMER_FACADE_H_