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

Last change on this file since 214 was 182, checked in by dai_9181, 17 years ago
File size: 777 bytes
RevLine 
[182]1#pragma once
[4]2
[182]3#include <jenga/include/smoothie/Namespace.h>
[4]4
5class CEnumMember{
6public:
7 char *m_name;
8 int m_value;
9 CEnumMember(char *name,int value);
10 ~CEnumMember();
11};
12
13class CEnumParent{
[103]14 NamespaceScopes namespaceScopes;
15 string name;
16
[4]17 BOOL bConst;
18
19 CEnumMember **ppobj_EnumMember;
20 int iEnumMemberNum;
21public:
22
[103]23 CEnumParent( const NamespaceScopes &namespaceScopes, const char *buffer,int nowLine);
[4]24 ~CEnumParent();
25
[103]26 const NamespaceScopes &GetNamespaceScopes() const
27 {
28 return namespaceScopes;
29 }
30 const string &GetName() const
31 {
32 return name;
33 }
[4]34
35public:
36 static void InitEnum(void);
37 static void DestroyEnum(void);
38
39 static char *GenerateCodes(void);
40};
41extern CEnumParent **ppobj_EnumParent;
42extern int iEnumParentNum;
Note: See TracBrowser for help on using the repository browser.