00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef _CLASS_FIELD_H_
00036 #define _CLASS_FIELD_H_
00037
00038 #include "../main/includes.h"
00039 #include "../list/listItem.h"
00040 #include "../commun2/idObject.h"
00041 #include "../commun/binaryFormat.h"
00042 #include "../string/string.h"
00043 #include "../commun/buffer.h"
00044 #include "../allocator/allocator.h"
00045
00054 class ClassField: public LI1,
00055 public IdObject,
00056 public InfoBinaryFormat {
00057 public:
00058
00060 String fieldName;
00061
00063 String fieldSignature;
00064
00065 public:
00066
00068 ClassField() {}
00069
00071 virtual ~ClassField() {}
00072
00081 virtual Buffer& infoToBin( Buffer& b);
00082
00083 #ifdef USE_ALLOCATOR
00084 private:
00085
00087 static Allocator _allocator;
00088
00089 public:
00090
00093 void* operator new( size_t sz) { return _allocator.get( sz);}
00094
00097 void operator delete( void* unit) { _allocator.put( unit);}
00098 #endif
00099
00100 public:
00101
00106 virtual eClassIdent getClassIdent() { return CLASS_FIELD;}
00107 };
00108
00109 #endif // _CLASS_FIELD_H_