blob: 7fa425e6b63a8d9af64e9fc1b68a36e26506f2eb (
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
|
#ifndef INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_
#define INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
#include <xalanc/XPath/XObject.hpp>
#include <string>
#include <unordered_map>
#include "common.h"
namespace InputXSLT {
class StylesheetParameterGuard {
public:
typedef std::unordered_map<std::string, std::string> map;
explicit StylesheetParameterGuard(xalan::XalanTransformer&);
StylesheetParameterGuard(
xalan::XalanTransformer&,
const map&
);
~StylesheetParameterGuard();
void set(const map&);
void set(const std::string&, const std::string&);
void set(const std::string&, const xalan::XObjectPtr&);
private:
xalan::XalanTransformer& transformer_;
};
}
#endif // INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_
|