aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom/document_cache_item.h
blob: 13fddfc4a39bd55b26b514051821b4ac2fbc670e (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
#ifndef INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_ITEM_H_
#define INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_ITEM_H_

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

#include <xercesc/dom/DOMDocument.hpp>

#include "common.h"
#include "document_cache.h"

namespace InputXSLT {

class DomDocumentCache::item {
	public:
		~item();

		xalan::XalanDocument* getXalanDocument();

	protected:
		friend DomDocumentCache;

		item(xercesc::DOMDocument*);

	private:
		xalan::XercesParserLiaison parser_;
		xalan::XercesDOMSupport dom_support_;
		xercesc::DOMDocument* const document_;
		xalan::XercesDOMWrapperParsedSource parsed_source_;

};

}

#endif  // INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_ITEM_H_