response.hpp

来自「This is a GPS communication source code 」· HPP 代码 · 共 55 行

HPP
55
字号
#if ! defined( RESPONSE_CLASS_HEADER )

#define RESPONSE_CLASS_HEADER

/*
** Author: Samuel R. Blackburn
** Internet: sam_blackburn@pobox.com
**
** You can use it any way you like as long as you don't try to sell it.
**
** Copyright, 1996, Samuel R. Blackburn
**
** 05 Jun 96 - With Jan-Erik Eriksson's help, added DataSource
**
** $Workfile: response.hpp $
** $Revision: 6 $
** $Modtime: 10/10/98 2:51p $
*/

class NMEA0183;

class RESPONSE
{
   private:

      NMEA0183 *container_p;

   public:

      RESPONSE();
      virtual ~RESPONSE();

      /*
      ** Data
      */

      CString DataSource;
      CString ErrorMessage;
      CString Mnemonic;
      CString Talker;

      /*
      ** Methods
      */

      virtual void Empty( void ) = 0;
      virtual BOOL Parse( const SENTENCE& sentence ) = 0;
      virtual CString PlainEnglish( void ) const;
      virtual void SetErrorMessage( const CString& );
      virtual void SetContainer( NMEA0183 *container );
      virtual BOOL Write( SENTENCE& sentence );
};
 
#endif // RESPONSE_CLASS_HEADER

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?