⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p.cpp

📁 GPS的协议为NMEA0183
💻 CPP
字号:
#include "nmea0183.h"
#pragma hdrstop

/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/

IMPLEMENT_DYNAMIC( P, RESPONSE )

P::P()
{
   Mnemonic = "P";
   Empty();
}

P::~P()
{
   Mnemonic.Empty();
   Empty();
}

void P::Empty( void )
{
   ASSERT_VALID( this );

   Sentence.Empty();
}

BOOL P::Parse( const SENTENCE& sentence )
{
   ASSERT_VALID( this );

   /*
   ** This is where parsing of proprietary sentences will go...
   */

   Sentence = sentence;

   return( TRUE );
}

BOOL P::Write( SENTENCE& sentence )
{
   ASSERT_VALID( this );

   /*
   ** Let the parent do its thing
   */
   
   RESPONSE::Write( sentence );

   sentence += Sentence;

   sentence.Finish();

   return( TRUE );
}

const P& P::operator = ( const P& source )
{
   ASSERT_VALID( this );

   Sentence = source.Sentence;

   return( *this );
}

⌨️ 快捷键说明

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