00001
00015 #ifndef INC_MI32_STRTODEG_H
00016 #define INC_MI32_STRTODEG_H
00017
00018 #ifndef INC_MI32_MISTRING_H
00019 #include <mi32/mistring.h>
00020 #endif
00021
00022
00023 #ifdef GEOMDLL
00024 #define LIBEXPORT MI_DLLEXPORT
00025 #else
00026 #define LIBEXPORT MI_DLLIMPORT
00027 #endif
00028
00031
00032
00033 enum DEGTOSTRFLAGS {
00034 DEGTOSTRFLAG_NoDir = 0x00000000,
00035 DEGTOSTRFLAG_Longitude = 0x00000001,
00036 DEGTOSTRFLAG_Latitude = 0x00000002,
00037 DEGTOSTRFLAG_DirLast = 0x00000010,
00038 DEGTOSTRFLAG_DecDegs = 0x00000020,
00039 DEGTOSTRFLAG_DegDecMin = 0x00000040,
00040 DEGTOSTRFLAG_DegMinSec = 0x00000080,
00041 DEGTOSTRFLAG_Longitude360 = 0x00000100,
00042 DEGTOSTRFLAG_AutoPrecision = 0x00000200,
00043 };
00044 #ifndef GENERATING_DOXYGEN_OUTPUT
00045 DEFINE_ENUM_OP_BITWISE(DEGTOSTRFLAGS)
00046 #endif
00047
00051 LIBEXPORT char* ConvertDegsToString (
00052 char* string,
00053 double value,
00054 DEGTOSTRFLAGS flags
00055 );
00056
00060 LIBEXPORT MISTRING ConvertDegsToString (
00061 double value,
00062 DEGTOSTRFLAGS flags
00063 );
00064
00080 LIBEXPORT bool ConvertStringToDegs (
00081 const char* string,
00082 double* value
00083 );
00084
00086
00087 #undef LIBEXPORT
00088
00089 #endif // INC_MI32_STRTODEG_H