42 typedef float dxfdouble;
46 #define M_PI 3.14159265357989
49 #define DXFABS(x) ((x)<0?-(x):(x))
50 #define DXFMAX(x,y) ((x)>(y)?(x):(y))
51 #define DXFMIN(x,y) ((x)<(y)?(x):(y))
52 #define DXFDEG2RAD(x) (M_PI*(x)/180.0)
53 #define DXFRAD2DEG(x) (180.0*(x)/M_PI)
63 template <
class T>
inline
70 #include <support/SupportDefs.h>
71 #else // ! defined(__BEOS__)
72 typedef signed char int8;
73 typedef unsigned char uint8;
74 typedef signed short int16;
75 typedef unsigned short uint16;
78 #else // ! defined(_WIN32)
79 typedef signed int int32;
80 #endif // ! defined(_WIN32)
81 typedef unsigned int uint32;
82 #endif // ! defined(__BEOS__)
85 char* strdup(
const char* );
88 #define ARRAY_NEW(memh, type, num) \
89 memh ? (type*) memh->allocMem((num)*sizeof(type)) : new type[num]
91 #define DXF_STRCPY(mh, d, s) \
92 mh ? d = mh->stringAlloc(s) : d = new char[strlen(s)+1]; if (d) strcpy(d,s)
95 typedef dimeCallbackFunc * dimeCallback;
102 dxfdouble double_data;
103 const char *string_data;
104 const char *hex_data;
112 # error Leave the internal DIME_DLL_API define alone.
116 # error The DIME_NOT_DLL define is not supposed to be used when building the library, only when building Win32 applications.
119 # error The DIME_DLL define is not supposed to be used when building the library, only when building Win32 applications.
154 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
155 # ifdef DIME_INTERNAL
156 # ifdef DIME_MAKE_DLL
157 # define DIME_DLL_API __declspec(dllexport)
162 # error Do not define both DIME_DLL and DIME_NOT_DLL at the same time
164 # define DIME_DLL_API __declspec(dllimport)
166 # ifndef DIME_NOT_DLL
167 # error Define either DIME_DLL or DIME_NOT_DLL as appropriate for your linkage! See dime/Basic.h for further instructions.
175 # define DIME_DLL_API
180 #endif // !DIME_BASIC_H
The dimeState class manages various state variables while the model is traversed. ...
Definition: State.h:37
The dimeEntity class is the superclass of all entity classes.
Definition: Entity.h:57
The dimeParam class is a union of the different parameter types.
Definition: Basic.h:97