-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXTBImageComplexDictionary.h
37 lines (27 loc) · 1 KB
/
XTBImageComplexDictionary.h
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
//
// XTBImageComplexDictionary.h
// XTBook
//
// Created by Kawada Tomoaki on 8/1/11.
// Copyright 2011 Nexhawks. All rights reserved.
//
#pragma once
#include "XTBDictionary.h"
class XTBDicDBReader;
class XTBIndexDBReader;
class XTBImageComplexArticle;
#define XTBImageComplexImagesFileKey "XTBImageComplexImagesFile"
#define XTBImageComplexSearchFileKey "XTBImageComplexSearchFile"
class XTBImageComplexDictionary: public XTBDictionary{
friend class XTBImageComplexArticle;
XTBDicDBReader *m_images;
XTBIndexDBReader *m_searchIndex;
std::string dbKeyForDocumentName(const std::wstring& name) const;
XTBImageComplexArticle *articleForDbKey(const std::string& dbKey) const;
public:
XTBImageComplexDictionary(const XTBSysString&, const TPLDictionary *options);
virtual ~XTBImageComplexDictionary();
virtual bool hasDocumentForName(const std::wstring&) const;
virtual XTBDocument *documentForName(const std::wstring&) const;
virtual XTBDictionaryIterator *searchWithKey(const std::wstring&) const;
};