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( GLL_CLASS_HEADER )
34 #define GLL_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 GLL : public RESPONSE
45 {
46 
47    public:
48 
49       GLL();
50      ~GLL();
51 
52       /*
53       ** Data
54       */
55 
56       wxString          UTCTime;
57       NMEA0183_BOOLEAN IsDataValid;
58       LATLONG          Position;
59 
60       /*
61       ** Methods
62       */
63 
64       virtual void Empty( void );
65       virtual bool Parse( const SENTENCE& sentence );
66       virtual const wxString& PlainEnglish( void );
67       virtual bool Write( SENTENCE& sentence );
68 
69       /*
70       ** Operators
71       */
72 
73       virtual const GLL& operator = ( const GLL& source );
74 };
75 
76 #endif // GLL_CLASS_HEADER
77