00001 #ifndef __CBGPX_H_ 00002 #define __CBGPX_H_ 00003 00004 #include "cbthr.h" 00005 #include <stdio.h> 00006 #include <wchar.h> 00007 00055 #ifdef __cplusplus 00056 extern "C" { 00057 #endif 00058 00059 typedef struct { 00062 t_cbthrcs cs; 00067 double minlat; 00072 double maxlat; 00077 double minlon; 00082 double maxlon; 00085 FILE *f; 00090 int idx; 00091 } t_cbgpx; 00092 00097 short cbgpx_isvalid(const t_cbgpx* aHandle); 00098 00114 short cbgpx_opena(t_cbgpx* theHandle, const char *aFileName); 00115 00124 short cbgpx_openw(t_cbgpx* theHandle, const wchar_t *aFileName); 00125 00134 void cbgpx_close(t_cbgpx *aHandle); 00135 00165 short cbgpx_write(t_cbgpx *aHandle, double aLat, double aLon, double anAlt); 00166 00167 #ifdef __cplusplus 00168 } 00169 #endif 00170 00171 #endif 00172