openModeller  Version 1.5.0
om_defs.hh
Go to the documentation of this file.
1 
28 #ifndef _DEFSHH_
29 #define _DEFSHH_
30 
31 //preprocessor trick to convert anything to a quoted string
32 //e.g. myString.append(WRITESTRING(OM_MAJOR_VERSION))
33 #define WRITESTRING(x) #x
34 
35 // Math types.
36 //
37 // Must be 'float' or 'double':
38 typedef double Coord;
39 typedef double Scalar;
40 
49 typedef void (*ModelCreationCallback)( float progress, void *extra_param );
50 
58 typedef void (*ModelProjectionCallback)( float progress, void *extra_param );
59 
64 typedef bool (*AbortionCallback)( void *extra_param );
65 
66 
67 // Windows only defs
68 //
69 #ifdef WIN32
70 
71 // Strangely enough, cygwin/mingw windows libs have strcasecmp() function
72 // while native VC++7 lib doesn't. Go figure...
73 # ifdef MSVC
74 # define strcasecmp _stricmp
75 # endif
76 
77 // disable warnings about lack of DLL export in inner class members
78 #ifdef MSVC
79 #pragma warning( disable : 4251)
80 #pragma warning( disable : 4275)
81 // disable warning on deprecation of standard C functions and others
82 #pragma warning( disable : 4996)
83 #endif //MSVC
84 
85 
86 #endif //WIN32
87 
88 #endif //_DEFSHH_
89 
90 
91 
92 
double Scalar
Type of map values.
Definition: om_defs.hh:39
void(* ModelCreationCallback)(float progress, void *extra_param)
Definition: om_defs.hh:49
bool(* AbortionCallback)(void *extra_param)
Definition: om_defs.hh:64
double Coord
Type of map coordinates.
Definition: om_defs.hh:38
void(* ModelProjectionCallback)(float progress, void *extra_param)
Definition: om_defs.hh:58