aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom/document_cache.h
blob: 287a316de2a52a9abf55d139054e3de0cf5c40c1 (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
#ifndef INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_
#define INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_

#include <unordered_map>
#include <string>
#include <memory>

namespace InputXSLT {

class DomDocumentCache {
	public:
		class item;

		DomDocumentCache();

		item* get(const std::string&);

	private:
		std::unordered_map<std::string, std::unique_ptr<item>> map_;

};

}

#include "document_cache_item.h"

#endif  // INPUTXSLT_SRC_SUPPORT_DOM_DOCUMENT_CACHE_H_