aboutsummaryrefslogtreecommitdiff
path: root/src/plattform_guard.h
blob: fe8b954e0bc6419b3963f65208a36b831d3bd516 (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
#ifndef INPUTXSLT_SRC_PLATTFORM_GUARD_H_
#define INPUTXSLT_SRC_PLATTFORM_GUARD_H_

#include <xalanc/Include/PlatformDefinitions.hpp>
#include <xalanc/XalanTransformer/XalanTransformer.hpp>

#include <xercesc/util/PlatformUtils.hpp>

#include "common.h"

namespace InputXSLT {

struct PlattformGuard {
	PlattformGuard() {
		xercesc::XMLPlatformUtils::Initialize();
		xalan::XalanTransformer::initialize();
	}

	~PlattformGuard() {
		xalan::XalanTransformer::terminate();
	}
};

}

#endif  // INPUTXSLT_SRC_PLATTFORM_GUARD_H_