Last change
on this file since 113 was 103, checked in by dai_9181, 18 years ago |
名前空間機能をグローバル変数、定数と列挙型に適用。
一部、クラスの静的メンバと名前空間の相性が悪いコードが潜んでいるため、要改修
|
File size:
716 bytes
|
Rev | Line | |
---|
[4] | 1 |
|
---|
| 2 |
|
---|
| 3 | class CEnumMember{
|
---|
| 4 | public:
|
---|
| 5 | char *m_name;
|
---|
| 6 | int m_value;
|
---|
| 7 | CEnumMember(char *name,int value);
|
---|
| 8 | ~CEnumMember();
|
---|
| 9 | };
|
---|
| 10 |
|
---|
| 11 | class CEnumParent{
|
---|
[103] | 12 | NamespaceScopes namespaceScopes;
|
---|
| 13 | string name;
|
---|
| 14 |
|
---|
[4] | 15 | BOOL bConst;
|
---|
| 16 |
|
---|
| 17 | CEnumMember **ppobj_EnumMember;
|
---|
| 18 | int iEnumMemberNum;
|
---|
| 19 | public:
|
---|
| 20 |
|
---|
[103] | 21 | CEnumParent( const NamespaceScopes &namespaceScopes, const char *buffer,int nowLine);
|
---|
[4] | 22 | ~CEnumParent();
|
---|
| 23 |
|
---|
[103] | 24 | const NamespaceScopes &GetNamespaceScopes() const
|
---|
| 25 | {
|
---|
| 26 | return namespaceScopes;
|
---|
| 27 | }
|
---|
| 28 | const string &GetName() const
|
---|
| 29 | {
|
---|
| 30 | return name;
|
---|
| 31 | }
|
---|
[4] | 32 |
|
---|
| 33 | public:
|
---|
| 34 | static void InitEnum(void);
|
---|
| 35 | static void DestroyEnum(void);
|
---|
| 36 |
|
---|
| 37 | static char *GenerateCodes(void);
|
---|
| 38 | };
|
---|
| 39 | extern CEnumParent **ppobj_EnumParent;
|
---|
| 40 | extern int iEnumParentNum;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.