source: pacpusframework/branches/2.0-beta1/include/extlib/NMEA0183/TTM.hpp@ 94

Last change on this file since 94 was 89, checked in by morasjul, 12 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#if ! defined( TTM_CLASS_HEADER )
2
3#define TTM_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: ttm.hpp $
14** $Revision: 4 $
15** $Modtime: 10/10/98 4:44p $
16*/
17
18typedef enum
19{
20 TargetUnknown = 0,
21 TargetLost,
22 TargetQuery,
23 TargetTracking
24}
25TARGET_STATUS;
26
27class TTM : public RESPONSE
28{
29 public:
30
31 TTM();
32 virtual ~TTM();
33
34 /*
35 ** Data
36 */
37
38 int TargetNumber;
39 double TargetDistance;
40 double BearingFromOwnShip;
41 QString BearingUnits;
42 double TargetSpeed;
43 double TargetCourse;
44 QString TargetCourseUnits;
45 double DistanceOfClosestPointOfApproach;
46 double NumberOfMinutesToClosestPointOfApproach;
47 QString Increasing;
48 QString TargetName;
49 TARGET_STATUS TargetStatus;
50 QString ReferenceTarget;
51
52 /*
53 ** Methods
54 */
55
56 virtual void Empty( void );
57 virtual BOOL Parse( const SENTENCE& sentence );
58 virtual BOOL Write( SENTENCE& sentence );
59
60 /*
61 ** Operators
62 */
63
64 virtual const TTM& operator = ( const TTM& source );
65};
66
67#endif // TTM_CLASS_HEADER
Note: See TracBrowser for help on using the repository browser.