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 #if ! defined( VWR_CLASS_HEADER ) 33 #define VWR_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 VWR : public RESPONSE 44 { 45 // DECLARE_DYNAMIC( MWV ) 46 47 public: 48 49 VWR(); 50 ~VWR(); 51 52 /* 53 ** Data 54 */ 55 56 double WindDirectionMagnitude; 57 LEFTRIGHT DirectionOfWind; 58 double WindSpeedKnots; 59 double WindSpeedms; 60 double WindSpeedKmh; 61 62 /* 63 ** Methods 64 */ 65 66 virtual void Empty( void ); 67 virtual bool Parse( const SENTENCE& sentence ); 68 virtual bool Write( SENTENCE& sentence ); 69 70 /* 71 ** Operators 72 */ 73 74 virtual const VWR& operator = ( const VWR& source ); 75 }; 76 77 #endif // VWR_CLASS_HEADER 78