source: dev/BasicCompiler_Common/Const.h@ 6

Last change on this file since 6 was 5, checked in by dai_9181, 18 years ago
File size: 671 bytes
Line 
1
2
3//定数の基底クラス
4class CConstBase{
5 char *Name;
6
7public:
8
9 CConstBase(char *Name);
10 ~CConstBase();
11};
12
13//定数
14class CConst:public CConstBase{
15 int Type;
16 _int64 i64data;
17public:
18
19 CConst(char *Name, char *Expression);
20 ~CConst();
21};
22
23//定数マクロ
24class CConstMacro:public CConstBase{
25 int ParmNum;
26 char **ppParm;
27public:
28
29 CConstMacro(char *Name, char *Expression);
30 ~CConstMacro();
31};
32
33//定数管理クラス
34class CDBConst{
35 CConst **ppobj_Const;
36 int NumOfConst;
37
38 CConstMacro **ppobj_Macro;
39 int NumOfMacro;
40public:
41
42 CDBConst();
43 ~CDBConst();
44
45 void Add(char *buffer);
46
47 void AddConst(char *Name, char *Expression);
48};
Note: See TracBrowser for help on using the repository browser.