Welcome to mirror list, hosted at ThFree Co, Russian Federation.

aard_dictionary.hpp « publisher - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3173ad0a7a05a26489d0cbb8b96981576d1a0cdb (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
#pragma once
#include "../words/dictionary.hpp"
#include "../base/base.hpp"
#include "../std/map.hpp"
#include "../std/scoped_ptr.hpp"
#include "../std/string.hpp"

class Reader;

namespace sl
{

class AardDictionary : public Dictionary
{
public:
  explicit AardDictionary(Reader const & reader);
  ~AardDictionary();
  Id KeyCount() const;
  void KeyById(Id id, string & key) const;
  void ArticleById(Id id, string & article) const;
private:
  Reader const & m_Reader;
  struct AardDictionaryHeader;
  scoped_ptr<AardDictionaryHeader> m_pHeader;
  map<string, Id> m_KeyToIdMap;
};

}