Last change
on this file since 132 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 | #if ! defined( XDR_CLASS_HEADER )
|
---|
2 |
|
---|
3 | #define XDR_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: xdr.hpp $
|
---|
14 | ** $Revision: 5 $
|
---|
15 | ** $Modtime: 10/10/98 3:03p $
|
---|
16 | */
|
---|
17 |
|
---|
18 | class TRANSDUCER_DATA
|
---|
19 | {
|
---|
20 | public:
|
---|
21 |
|
---|
22 | TRANSDUCER_DATA();
|
---|
23 | virtual ~TRANSDUCER_DATA();
|
---|
24 |
|
---|
25 | /*
|
---|
26 | ** Data
|
---|
27 | */
|
---|
28 |
|
---|
29 | TRANSDUCER_TYPE TransducerType;
|
---|
30 | double MeasurementData;
|
---|
31 | QString MeasurementUnits;
|
---|
32 | QString TransducerName;
|
---|
33 |
|
---|
34 | /*
|
---|
35 | ** Methods
|
---|
36 | */
|
---|
37 |
|
---|
38 | virtual void Empty( void );
|
---|
39 | virtual void Parse( int first_field_number, const SENTENCE& sentence );
|
---|
40 | virtual void Write( SENTENCE& sentence );
|
---|
41 |
|
---|
42 | /*
|
---|
43 | ** Operators
|
---|
44 | */
|
---|
45 |
|
---|
46 | virtual const TRANSDUCER_DATA& operator = ( const TRANSDUCER_DATA& source );
|
---|
47 | };
|
---|
48 |
|
---|
49 | class XDR : public RESPONSE
|
---|
50 | {
|
---|
51 | private:
|
---|
52 |
|
---|
53 | void delete_all_entries( void );
|
---|
54 |
|
---|
55 | public:
|
---|
56 |
|
---|
57 | XDR();
|
---|
58 | ~XDR();
|
---|
59 |
|
---|
60 | QVector<TRANSDUCER_DATA*> Transducers;
|
---|
61 |
|
---|
62 | virtual void Empty( void );
|
---|
63 | virtual BOOL Parse( const SENTENCE& sentence );
|
---|
64 | virtual BOOL Write( SENTENCE& sentence );
|
---|
65 | };
|
---|
66 |
|
---|
67 | #endif // XDR_CLASS_HEADER
|
---|
Note:
See
TracBrowser
for help on using the repository browser.