1 /***************************************************************************
2  *
3  * Project:  OpenCPN
4  * Purpose:  NMEA0183 Support Classes
5  * Author:   Samuel R. Blackburn, David S. Register, Jean-Eudes Onfray
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 #if ! defined( MWD_CLASS_HEADER )
33 #define MWD_CLASS_HEADER
34 
35 /*
36 ** Author: Samuel R. Blackburn
37 ** CI$: 76300,326
38 ** Internet: sammy@sed.csc.com
39 **
40 ** You can use it any way you like.
41 */
42 
43 class MWD : public RESPONSE
44 {
45 //   DECLARE_DYNAMIC( MWD )
46 
47    public:
48 
49       MWD();
50      ~MWD();
51 
52       /*
53       ** Data
54       */
55 
56       double           WindAngleTrue;
57       double           WindAngleMagnetic;
58       double           WindSpeedKnots;
59       double           WindSpeedms;
60 
61       /*
62       ** Methods
63       */
64 
65       virtual void Empty( void );
66       virtual bool Parse( const SENTENCE& sentence );
67       virtual bool Write( SENTENCE& sentence );
68 
69       /*
70       ** Operators
71       */
72 
73       virtual const MWD& operator = ( const MWD& source );
74 };
75 
76 #endif // MWD_CLASS_HEADER
77