source: dev/trunk/abdev/BasicCompiler_Common/Enum.h@ 163

Last change on this file since 163 was 103, checked in by dai_9181, 18 years ago

名前空間機能をグローバル変数、定数と列挙型に適用。
一部、クラスの静的メンバと名前空間の相性が悪いコードが潜んでいるため、要改修

File size: 716 bytes
Line 
1
2
3class CEnumMember{
4public:
5 char *m_name;
6 int m_value;
7 CEnumMember(char *name,int value);
8 ~CEnumMember();
9};
10
11class CEnumParent{
12 NamespaceScopes namespaceScopes;
13 string name;
14
15 BOOL bConst;
16
17 CEnumMember **ppobj_EnumMember;
18 int iEnumMemberNum;
19public:
20
21 CEnumParent( const NamespaceScopes &namespaceScopes, const char *buffer,int nowLine);
22 ~CEnumParent();
23
24 const NamespaceScopes &GetNamespaceScopes() const
25 {
26 return namespaceScopes;
27 }
28 const string &GetName() const
29 {
30 return name;
31 }
32
33public:
34 static void InitEnum(void);
35 static void DestroyEnum(void);
36
37 static char *GenerateCodes(void);
38};
39extern CEnumParent **ppobj_EnumParent;
40extern int iEnumParentNum;
Note: See TracBrowser for help on using the repository browser.