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.1 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: omegapar.cpp $
|
---|
13 | ** $Revision: 4 $
|
---|
14 | ** $Modtime: 10/10/98 2:42p $
|
---|
15 | */
|
---|
16 |
|
---|
17 |
|
---|
18 | OMEGA_PAIR::OMEGA_PAIR()
|
---|
19 | {
|
---|
20 | Empty();
|
---|
21 | }
|
---|
22 |
|
---|
23 | OMEGA_PAIR::~OMEGA_PAIR()
|
---|
24 | {
|
---|
25 | Empty();
|
---|
26 | }
|
---|
27 |
|
---|
28 | void OMEGA_PAIR::Empty( void )
|
---|
29 | {
|
---|
30 | //Name.Empty();
|
---|
31 | LaneNumber = 0;
|
---|
32 | CentilaneNumber = 0;
|
---|
33 | }
|
---|
34 |
|
---|
35 | void OMEGA_PAIR::Parse( int first_field_number, const SENTENCE& sentence )
|
---|
36 | {
|
---|
37 | Name = sentence.Field( first_field_number );
|
---|
38 | LaneNumber = sentence.Integer( first_field_number + 1 );
|
---|
39 | CentilaneNumber = sentence.Integer( first_field_number + 2 );
|
---|
40 | }
|
---|
41 |
|
---|
42 | void OMEGA_PAIR::Write( SENTENCE& sentence )
|
---|
43 | {
|
---|
44 | sentence += Name;
|
---|
45 | sentence += LaneNumber;
|
---|
46 | sentence += CentilaneNumber;
|
---|
47 | }
|
---|
48 |
|
---|
49 | const OMEGA_PAIR& OMEGA_PAIR::operator = ( const OMEGA_PAIR& source )
|
---|
50 | {
|
---|
51 | Name = source.Name;
|
---|
52 | LaneNumber = source.LaneNumber;
|
---|
53 | CentilaneNumber = source.CentilaneNumber;
|
---|
54 |
|
---|
55 | return( *this );
|
---|
56 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.