45 typedef float dxfdouble;
51 #define M_PI 3.14159265358979323846
54 #define DXFABS(x) ((x)<0?-(x):(x))
55 #define DXFMAX(x,y) ((x)>(y)?(x):(y))
56 #define DXFMIN(x,y) ((x)<(y)?(x):(y))
57 #define DXFDEG2RAD(x) (M_PI*(x)/180.0)
58 #define DXFRAD2DEG(x) (180.0*(x)/M_PI)
68 template <
class T>
inline
75 #include <support/SupportDefs.h>
76 #else // ! defined(__BEOS__)
77 typedef signed char int8;
78 typedef unsigned char uint8;
79 typedef signed short int16;
80 typedef unsigned short uint16;
83 #else // ! defined(_WIN32)
84 typedef signed int int32;
85 #endif // ! defined(_WIN32)
86 typedef unsigned int uint32;
87 #endif // ! defined(__BEOS__)
90 char* strdup(
const char* );
93 #define ARRAY_NEW(memh, type, num) \
94 memh ? (type*) memh->allocMem((num)*sizeof(type)) : new type[num]
96 #define DXF_STRCPY(mh, d, s) \
97 mh ? d = mh->stringAlloc(s) : d = new char[strlen(s)+1]; if (d) strcpy(d,s)
100 typedef dimeCallbackFunc * dimeCallback;
107 dxfdouble double_data;
108 const char *string_data;
109 const char *hex_data;
117 # error Leave the internal DIME_DLL_API define alone.
121 # error The DIME_NOT_DLL define is not supposed to be used when building the library, only when building Win32 applications.
124 # error The DIME_DLL define is not supposed to be used when building the library, only when building Win32 applications.
159 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
160 # ifdef DIME_INTERNAL
161 # ifdef DIME_MAKE_DLL
162 # define DIME_DLL_API __declspec(dllexport)
167 # error Do not define both DIME_DLL and DIME_NOT_DLL at the same time
169 # define DIME_DLL_API __declspec(dllimport)
171 # ifndef DIME_NOT_DLL
172 # error Define either DIME_DLL or DIME_NOT_DLL as appropriate for your linkage! See dime/Basic.h for further instructions.
180 # define DIME_DLL_API
183 int DIME_DLL_API dime_isnan(
double value);
184 int DIME_DLL_API dime_isinf(
double value);
185 int DIME_DLL_API dime_finite(
double value);
189 #endif // !DIME_BASIC_H
The dimeState class manages various state variables while the model is traversed. ...
Definition: State.h:40
The dimeEntity class is the superclass of all entity classes.
Definition: Entity.h:60
The dimeParam class is a union of the different parameter types.
Definition: Basic.h:102