1 /*************************************************************************** 2 * 3 * Project: OpenCPN 4 * Purpose: NMEA0183 Support Classes 5 * Author: Samuel R. Blackburn, David S. Register 6 * 7 *************************************************************************** 8 * Copyright (C) 2010 by Samuel R. Blackburn, David S Register * 9 * * 10 * This program is free software; you can redistribute it and/or modify * 11 * it under the terms of the GNU General Public License as published by * 12 * the Free Software Foundation; either version 2 of the License, or * 13 * (at your option) any later version. * 14 * * 15 * This program is distributed in the hope that it will be useful, * 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 18 * GNU General Public License for more details. * 19 * * 20 * You should have received a copy of the GNU General Public License * 21 * along with this program; if not, write to the * 22 * Free Software Foundation, Inc., * 23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 24 *************************************************************************** 25 * 26 * S Blackburn's original source license: * 27 * "You can use it any way you like." * 28 * More recent (2010) license statement: * 29 * "It is BSD license, do with it what you will" * 30 */ 31 32 33 #if ! defined( RTE_CLASS_HEADER ) 34 #define RTE_CLASS_HEADER 35 36 /* 37 ** Author: Samuel R. Blackburn 38 ** CI$: 76300,326 39 ** Internet: sammy@sed.csc.com 40 ** 41 ** You can use it any way you like. 42 */ 43 44 class RTE : public RESPONSE 45 { 46 47 private: 48 49 void delete_all_entries( void ); 50 51 double last_message_number_received; 52 53 int last_waypoint_number_written; 54 55 public: 56 57 RTE(); 58 ~RTE(); 59 60 61 ROUTE_TYPE TypeOfRoute; 62 wxString RouteName; 63 wxArrayString Waypoints; 64 int message_number; 65 int total_number_of_messages; 66 int m_skip_checksum; 67 char m_complete_char; 68 69 virtual void Empty( void ); 70 virtual bool Parse( const SENTENCE& sentence ); 71 virtual bool Write( SENTENCE& sentence ); 72 virtual bool AddWaypoint(const wxString& name); 73 74 75 }; 76 77 #endif // RTE_CLASS_HEADER 78