blob: 19ad35ca8f12f74d80d5c2f01f225ec7605549da (
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 __PY_SPECIAL_PHRASE_TABLE_H_
#define __PY_SPECIAL_PHRASE_TABLE_H_
#include <map>
#include <list>
#include <string>
#include <vector>
#include <glib.h>
#include "SpecialPhrase.h"
namespace PY {
class SpecialPhraseTable {
private:
SpecialPhraseTable (void);
public:
gboolean lookup (const std::string &command, std::vector<std::string> &result);
private:
gboolean load (const gchar *file);
public:
static SpecialPhraseTable & instance (void) { return m_instance; }
private:
typedef std::multimap<std::string, SpecialPhrasePtr> Map;
Map m_map;
private:
static SpecialPhraseTable m_instance;
};
};
#endif
|