source: pacpussensors/trunk/NMEA0183/src/RESPONSE.cpp@ 80

Last change on this file since 80 was 59, checked in by DHERBOMEZ Gérald, 10 years ago

Integration of new modules:

  • GPS NMEA0183 decoder
  • Span CPT Decoder

Update of:

File size: 1.4 KB
Line 
1#include "nmea0183.h"
2#pragma hdrstop
3
4/*
5** Author: Samuel R. Blackburn
6** Internet: sam_blackburn@pobox.com
7**
8** You can use it any way you like as long as you don't try to sell it.
9**
10** Copyright, 1996, Samuel R. Blackburn
11**
12** $Workfile: response.cpp $
13** $Revision: 6 $
14** $Modtime: 10/10/98 2:51p $
15*/
16
17
18RESPONSE::RESPONSE()
19{
20 DataSource = "--"; // Default to an unknown source
21 //Mnemonic.Empty();
22 //Talker.Empty();
23
24 // 15 Jan 98 - Thanks go to Craig Miller (Craig.Miller@Bigfoot.com) for
25 // finding a bug here. I had left off the () after Empty
26 //ErrorMessage.Empty();
27}
28
29RESPONSE::~RESPONSE()
30{
31 //DataSource.Empty();
32 //Mnemonic.Empty();
33 //Talker.Empty();
34 //ErrorMessage.Empty();
35}
36
37void RESPONSE::SetContainer( NMEA0183 *container )
38{
39 container_p = container;
40}
41
42void RESPONSE::SetErrorMessage( const QString& error_message )
43{
44 ErrorMessage = Mnemonic;
45 ErrorMessage += ", ";
46 ErrorMessage += error_message;
47}
48
49BOOL RESPONSE::Write( SENTENCE& sentence )
50{
51 /*
52 ** All NMEA0183 sentences begin with the mnemonic...
53 **
54 ** Thanks to Jan-Erik Eriksson (Jan-Erik.Eriksson@st.se) for
55 ** finding and fixing a bug here
56 */
57
58 sentence = "$" + DataSource + Mnemonic;
59
60 return( TRUE );
61}
62
63QString RESPONSE::PlainEnglish( void ) const
64{
65 QString return_string;
66
67 //return_string.Empty();
68
69 return( return_string );
70}
Note: See TracBrowser for help on using the repository browser.