waypoint.h
来自「GPS Manager is a GUI for downloading, or」· C头文件 代码 · 共 85 行
H
85 行
/*gpsmgr: A program for managing GPS informationCopyright (C) 2003 Austin BinghamThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.You can reach the author at: abingham@spamcop.net*/#ifndef WAYPOINT_H#define WAYPOINT_H#include "datatypes.h"#include "groupobject.h"#include "latlon.h"#include <string>namespace gpspoint2 { class Wpt_Type;}using namespace gpspoint2;namespace gpsmgr{ class Waypoint : public GroupObject { public: Waypoint(); Waypoint(LatLon position, DistFt altitude, const string& name, const string& symbol, const string& comment, const string& displayOption); Waypoint(const Wpt_Type& wpt); const LatLon& position() const; void setPosition(const LatLon& pos); DistFt altitude() const; void setAltitude(DistFt alt); const string& name() const; void setName(const string& name); const string& symbol() const; void setSymbol(const string& sym); const string& comment() const; void setComment(const string& com); const string& displayOption() const; void setDisplayOption(const string& displayOption); private: LatLon mPosition; DistFt mAltitude; string mName; string mSymbol; string mComment; string mDisplayOption; }; bool operator==(const Waypoint& lhs, const Waypoint& rhs); bool operator<(const Waypoint& lhs, const Waypoint& rhs); }#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?