]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/symbtabl.h
several fixes
[wxWidgets.git] / utils / dialoged / src / symbtabl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: symbtabl.h
3 // Purpose: wxResourceSymbolTable class for storing/reading #defines
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _SYMBTABL_H_
13 #define _SYMBTABL_H_
14
15 #ifdef __GNUG__
16 #pragma interface "symbtabl.h"
17 #endif
18
19 class wxResourceSymbolTable: public wxObject
20 {
21 public:
22 wxResourceSymbolTable();
23 ~wxResourceSymbolTable();
24
25 // Operations
26 bool ReadIncludeFile(const wxString& filename);
27 bool WriteIncludeFile(const wxString& filename);
28 void Clear();
29 bool AddSymbol(const wxString& symbol, long id);
30
31 // Accessors
32 wxString GetSymbolForId(long id);
33 long GetIdForSymbol(const wxString& symbol);
34 bool SymbolExists(const wxString& symbol) const;
35
36 // Implementation
37
38 // Member variables
39 protected:
40 wxHashTable m_hashTable;
41 };
42
43 #endif
44 // _SYMBTABL_H_
45