Last change
on this file since 107 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.3 KB
|
Line | |
---|
1 | #include "TIME__.hpp"
|
---|
2 | //#pragma hdrstop
|
---|
3 |
|
---|
4 | /*
|
---|
5 | ** Author: O. Le Marchand
|
---|
6 |
|
---|
7 | **
|
---|
8 | ** You can use it any way you like as long as you don't try to sell it.
|
---|
9 | **
|
---|
10 |
|
---|
11 | **
|
---|
12 | ** $Workfile: TIME_.cpp $
|
---|
13 | ** $Revision: 6 $
|
---|
14 | ** $Modtime: 14/10/08 $
|
---|
15 | */
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | TIME_::TIME_()
|
---|
20 | {
|
---|
21 | Mnemonic = "TIME__";
|
---|
22 | Empty();
|
---|
23 | }
|
---|
24 |
|
---|
25 | TIME_::~TIME_()
|
---|
26 | {
|
---|
27 | //Mnemonic.Empty();
|
---|
28 | Empty();
|
---|
29 | }
|
---|
30 |
|
---|
31 | void TIME_::Empty( void )
|
---|
32 | {
|
---|
33 |
|
---|
34 |
|
---|
35 | //UTCTime.Empty();
|
---|
36 | }
|
---|
37 |
|
---|
38 | BOOL TIME_::Parse( const SENTENCE& sentence )
|
---|
39 | {
|
---|
40 | /*
|
---|
41 | ** TIME_
|
---|
42 | **
|
---|
43 | ** 1
|
---|
44 | ** |
|
---|
45 | ** $TIME__, hhmmss.sss*hh<CR><LF>
|
---|
46 | **
|
---|
47 | ** Field Number:
|
---|
48 | ** 1) hhmmss.ss is the UTC absolute time
|
---|
49 |
|
---|
50 | */
|
---|
51 |
|
---|
52 | UTCTime = sentence.Field( 1 );
|
---|
53 | Time = sentence.Time( 1 );
|
---|
54 |
|
---|
55 | return( TRUE );
|
---|
56 | }
|
---|
57 |
|
---|
58 | QString TIME_::PlainEnglish( void ) const
|
---|
59 | {
|
---|
60 | QString return_string;
|
---|
61 |
|
---|
62 | return_string = "not yet available ";
|
---|
63 |
|
---|
64 | return( return_string );
|
---|
65 | }
|
---|
66 |
|
---|
67 | BOOL TIME_::Write( SENTENCE& sentence )
|
---|
68 | {
|
---|
69 | /*
|
---|
70 | ** Let the parent do its thing
|
---|
71 | */
|
---|
72 |
|
---|
73 | RESPONSE::Write( sentence );
|
---|
74 |
|
---|
75 | sentence += UTCTime;
|
---|
76 |
|
---|
77 | sentence.Finish();
|
---|
78 |
|
---|
79 | return( TRUE );
|
---|
80 | }
|
---|
81 |
|
---|
82 | const TIME_& TIME_::operator = ( const TIME_& source )
|
---|
83 | {
|
---|
84 | UTCTime = source.UTCTime;
|
---|
85 |
|
---|
86 | return( *this );
|
---|
87 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.