⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 garmin_types.h

📁 Garble is a C++ program for transferring data to and from Garmin GPS
💻 H
字号:
// -*- mode: c++; c-basic-offset: 8; -*-// $Id: garmin_types.h,v 1.1.1.1 2000/02/21 06:17:23 decouto Exp $// garmin_types.h// Douglas S. J. De Couto// May 26, 1998// Copyright (C) 1998 Douglas S. J. De Couto// <decouto@lcs.mit.edu>//// This program is free software; you can redistribute it and/or// modify it under the terms of the GNU General Public License// as published by the Free Software Foundation; either version 2// of the License, or (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.#ifndef _gartype#define _gartype#include <string>#include <ctime>namespace garmin {#if macintosh#include <MacTypes.h>typedef UInt8 uint8; // garmin chartypedef SInt8 sint8;typedef UInt16 uint16; // garmin inttypedef SInt16 sint16;typedef UInt32 uint32; // garmin longtypedef SInt32 sint32;typedef Float32 float32; // garmin floattypedef Float64 double64; // garmin double#endif#if linux // yeah at least this will work on my i386#include <linux/types.h>typedef unsigned char uint8; // garmin chartypedef char sint8;typedef unsigned short uint16; // garmin inttypedef short sint16;typedef unsigned long uint32; // garmin longtypedef long sint32;typedef float float32; // garmin floattypedef double double64; // garmin double#endif// position in semicircles; 2^31 semicircles == 180 degrees.// north, east are positive; south, west negative.struct semicircle_type {	sint32 lat;	sint32 lon;};// position in radians, sign conventions as above.struct radian_type {	double64 lat; 	double64 lon;};// for conveniencestruct degree_type {	double64 lat;	double64 lon;};   struct product_data_type {	sint16 product_id;	sint16 software_version;	std::string product_description;};// each product has its own specific, more extensive waypoint type.  // this type is the lowest common denominator of those types, except // for the D105 and D160 waypoint types.struct basic_waypt_type {	std::string id;	semicircle_type pos;	std::string comment;};struct track_point_type {	semicircle_type pos;	std::time_t time;	bool new_track;};struct proximity_waypt_type {	basic_waypt_type waypt;	float32 dist; // meters};} // namespace#endif // _gartype

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -