aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom/result_node_facade.h
blob: ccdd850ff4562756965bb4e556496b136b7b7a7d (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
#ifndef INPUTXSLT_SRC_SUPPORT_RESULT_NODE_FACADE_H_
#define INPUTXSLT_SRC_SUPPORT_RESULT_NODE_FACADE_H_

#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMElement.hpp>

#include <string>

namespace InputXSLT {

class ResultNodeFacade {
	public:
		ResultNodeFacade(
			xercesc::DOMDocument*,
			xercesc::DOMNode*,
			const std::string&
		);
		~ResultNodeFacade();

		void setAttribute(const std::string&, const std::string&);
		void setValueNode(const std::string&, const std::string&);
		void setContent(const std::string&);
		void setContent(xercesc::DOMNode*);

	private:
		xercesc::DOMDocument* const dom_document_;
		xercesc::DOMElement*  const result_node_;
		xercesc::DOMNode*     const root_node_;

};

}

#endif  // INPUTXSLT_SRC_SUPPORT_RESULT_NODE_FACADE_H_