source: pacpussensors/trunk/NMEA0183/include/Sentence.hpp@ 115

Last change on this file since 115 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: 2.5 KB
RevLine 
[59]1#if ! defined( SENTENCE_CLASS_HEADER )
2
3#define SENTENCE_CLASS_HEADER
4
5/*
6** Author: Samuel R. Blackburn
7** Internet: sam_blackburn@pobox.com
8**
9** You can use it any way you like as long as you don't try to sell it.
10**
11** Copyright, 1996, Samuel R. Blackburn
12**
13** $Workfile: sentence.hpp $
14** $Revision: 5 $
15** $Modtime: 10/10/98 10:04a $
16*/
17
18class LATLONG;
19
20class SENTENCE
21{
22 public:
23
24 SENTENCE();
25 virtual ~SENTENCE();
26
27 /*
28 ** Data
29 */
30
31 QString Sentence;
32
33 /*
34 ** Methods
35 */
36
37 virtual NMEA0183_BOOLEAN Boolean( int field_number ) const;
38 virtual unsigned char ComputeChecksum( void ) const;
39 virtual COMMUNICATIONS_MODE CommunicationsMode( int field_number ) const;
40 virtual double Double( int field_number ) const;
41 virtual EASTWEST EastOrWest( int field_number ) const;
42 virtual const QString Field( int field_number ) const;
43 virtual void Finish( void );
44 virtual unsigned short GetNumberOfDataFields( void ) const;
45 virtual int Integer( int field_number ) const;
46 virtual NMEA0183_BOOLEAN IsChecksumBad( int checksum_field_number ) const;
47 virtual LEFTRIGHT LeftOrRight( int field_number ) const;
48 virtual NORTHSOUTH NorthOrSouth( int field_number ) const;
49 virtual REFERENCE Reference( int field_number ) const;
50 virtual const QDateTime Time( int field_number ) const;
51 virtual TRANSDUCER_TYPE TransducerType( int field_number ) const;
52 virtual const QString getAutomaticChecksum( void ) const;
53
54 /*
55 ** Operators
56 */
57
58 operator QString() const;
59 virtual const SENTENCE& operator = ( const SENTENCE& source );
60 virtual const SENTENCE& operator = ( const QString& source );
61 virtual const SENTENCE& operator += ( const QString& source );
62 virtual const SENTENCE& operator += ( double value );
63 virtual const SENTENCE& operator += ( int value );
64 virtual const SENTENCE& operator += ( COMMUNICATIONS_MODE mode );
65 virtual const SENTENCE& operator += ( EASTWEST easting );
66 virtual const SENTENCE& operator += ( LATLONG& source );
67 virtual const SENTENCE& operator += ( NMEA0183_BOOLEAN boolean );
68 virtual const SENTENCE& operator += ( NORTHSOUTH northing );
69 virtual const SENTENCE& operator += ( const QDateTime time );
70 virtual const SENTENCE& operator += ( TRANSDUCER_TYPE transducer );
71};
72
73#endif // SENTENCE_CLASS_HEADER
Note: See TracBrowser for help on using the repository browser.