Rev | Line | |
---|
[4] | 1 |
|
---|
| 2 |
|
---|
| 3 | //定数の基底クラス
|
---|
| 4 | class CConstBase{
|
---|
| 5 | char *Name;
|
---|
| 6 |
|
---|
| 7 | public:
|
---|
| 8 |
|
---|
| 9 | CConstBase(char *Name);
|
---|
| 10 | ~CConstBase();
|
---|
| 11 | };
|
---|
| 12 |
|
---|
| 13 | //定数
|
---|
| 14 | class CConst:public CConstBase{
|
---|
| 15 | int Type;
|
---|
| 16 | _int64 i64data;
|
---|
| 17 | public:
|
---|
| 18 |
|
---|
| 19 | CConst(char *Name, char *Expression);
|
---|
| 20 | ~CConst();
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | //定数マクロ
|
---|
| 24 | class CConstMacro:public CConstBase{
|
---|
| 25 | int ParmNum;
|
---|
| 26 | char **ppParm;
|
---|
| 27 | public:
|
---|
| 28 |
|
---|
[5] | 29 | CConstMacro(char *Name, char *Expression);
|
---|
[4] | 30 | ~CConstMacro();
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | //定数管理クラス
|
---|
| 34 | class CDBConst{
|
---|
| 35 | CConst **ppobj_Const;
|
---|
| 36 | int NumOfConst;
|
---|
| 37 |
|
---|
| 38 | CConstMacro **ppobj_Macro;
|
---|
| 39 | int NumOfMacro;
|
---|
| 40 | public:
|
---|
| 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.