ldtypes.h

changeset 19
6c5977e43e73
parent 14
6d9d8efae2f8
child 21
9aebaaafa5da
equal deleted inserted replaced
18:a6732098fed8 19:6c5977e43e73
1 #ifndef __LDTYPES_H__ 1 #ifndef __LDTYPES_H__
2 #define __LDTYPES_H__ 2 #define __LDTYPES_H__
3 3
4 #include "common.h" 4 #include "common.h"
5 #include "str.h"
6 5
7 #define IMPLEMENT_LDTYPE(N) \ 6 #define IMPLEMENT_LDTYPE(N) \
8 LD##N (); \ 7 LD##N (); \
9 virtual LDObjectType_e getType () const { \ 8 virtual LDObjectType_e getType () const { \
10 return OBJ_##N; \ 9 return OBJ_##N; \
43 class LDObject { 42 class LDObject {
44 public: 43 public:
45 LDObject (); 44 LDObject ();
46 45
47 // Index (i.e. line number) of this object 46 // Index (i.e. line number) of this object
48 ulong getIndex (); 47 unsigned long getIndex ();
49 48
50 // Type enumerator of this object 49 // Type enumerator of this object
51 virtual LDObjectType_e getType () const { 50 virtual LDObjectType_e getType () const {
52 return OBJ_Unidentified; 51 return OBJ_Unidentified;
53 }; 52 };
201 public: 200 public:
202 IMPLEMENT_LDTYPE (Vector) 201 IMPLEMENT_LDTYPE (Vector)
203 202
204 vertex vPos; 203 vertex vPos;
205 bearing gAngle3D; 204 bearing gAngle3D;
206 ulong ulLength; 205 unsigned long ulLength;
207 }; 206 };
208 207
209 // ============================================================================= 208 // =============================================================================
210 // LDVertex 209 // LDVertex
211 // 210 //

mercurial