Last change
on this file since 145 was 140, checked in by dai_9181, 17 years ago |
traceログ機能を搭載
動的メンバをstl::vectorにまとめた
シンボルをクラス化した
|
File size:
1.2 KB
|
Rev | Line | |
---|
[136] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | #include <string>
|
---|
| 4 | #include <vector>
|
---|
| 5 |
|
---|
| 6 | #include "Type.h"
|
---|
| 7 |
|
---|
| 8 | using namespace std;
|
---|
| 9 |
|
---|
| 10 | class CClass;
|
---|
| 11 |
|
---|
[137] | 12 | class CMember : public MemberPrototype
|
---|
[136] | 13 | {
|
---|
| 14 | string name;
|
---|
[137] | 15 | Type type;
|
---|
[136] | 16 | bool isConst;
|
---|
[138] | 17 |
|
---|
| 18 | string initializeExpression;
|
---|
| 19 | string constructParameter;
|
---|
[136] | 20 | public:
|
---|
| 21 | int SubScripts[MAX_ARRAYDIM];
|
---|
| 22 |
|
---|
| 23 | int source_code_address;
|
---|
| 24 |
|
---|
| 25 | const string &GetName() const
|
---|
| 26 | {
|
---|
| 27 | return name;
|
---|
| 28 | }
|
---|
| 29 | void SetName( const string &name )
|
---|
| 30 | {
|
---|
| 31 | this->name = name;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
[137] | 34 | Type GetType() const
|
---|
| 35 | {
|
---|
| 36 | return type;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
[136] | 39 | bool IsConst()
|
---|
| 40 | {
|
---|
| 41 | return isConst;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
[138] | 44 | const string &GetInitializeExpression() const
|
---|
| 45 | {
|
---|
| 46 | return initializeExpression;
|
---|
| 47 | }
|
---|
| 48 | const string &GetConstructParameter() const
|
---|
| 49 | {
|
---|
| 50 | return constructParameter;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
[137] | 53 | CMember( Prototype::Accessibility accessibility, const string &name, const Type &type, bool isConst )
|
---|
| 54 | : MemberPrototype( accessibility )
|
---|
| 55 | , name( name )
|
---|
| 56 | , type( type )
|
---|
| 57 | , isConst( isConst )
|
---|
[136] | 58 | {
|
---|
| 59 | }
|
---|
[137] | 60 | CMember( CClass *pobj_c, Prototype::Accessibility accessibility, bool idConst, bool isRef, char *buffer, int nowLine=-1 );
|
---|
[136] | 61 | CMember( CMember &member );
|
---|
| 62 | ~CMember();
|
---|
| 63 | static void InitStaticMember(void);
|
---|
| 64 | };
|
---|
[140] | 65 | typedef std::vector<CMember *> Members;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.