-
Notifications
You must be signed in to change notification settings - Fork 0
/
EuroScopePlugIn.h
4937 lines (3871 loc) · 196 KB
/
EuroScopePlugIn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#pragma once
#ifndef DllSpecEuroScope
#define DllSpecEuroScope __declspec ( dllimport )
#define ESINDEX void *
#endif
// external undefined classes
class CRadarView ;
class CPlugInData ;
namespace EuroScopePlugIn
{
const int COMPATIBILITY_CODE = 16 ;
const int FLIGHT_PLAN_STATE_NOT_STARTED = 0 ;
const int FLIGHT_PLAN_STATE_SIMULATED = 1 ;
const int FLIGHT_PLAN_STATE_TERMINATED = 2 ;
const int FLIGHT_PLAN_STATE_NON_CONCERNED = 0 ;
const int FLIGHT_PLAN_STATE_NOTIFIED = 1 ;
const int FLIGHT_PLAN_STATE_COORDINATED = 2 ;
const int FLIGHT_PLAN_STATE_TRANSFER_TO_ME_INITIATED = 3 ;
const int FLIGHT_PLAN_STATE_TRANSFER_FROM_ME_INITIATED= 4 ;
const int FLIGHT_PLAN_STATE_ASSUMED = 5 ;
const int FLIGHT_PLAN_STATE_REDUNDANT = 7 ;
const int AIRWAY_CLASS_VALID = 0 ;
const int AIRWAY_CLASS_DIRECTION_ERROR = 1 ;
const int AIRWAY_CLASS_UNCONNECTED = 2 ;
const int AIRWAY_CLASS_NO_DATA_DIRECT = 3 ;
const int CTR_DATA_TYPE_SQUAWK = 1 ;
const int CTR_DATA_TYPE_FINAL_ALTITUDE = 2 ;
const int CTR_DATA_TYPE_TEMPORARY_ALTITUDE = 3 ;
const int CTR_DATA_TYPE_COMMUNICATION_TYPE = 4 ;
const int CTR_DATA_TYPE_SCRATCH_PAD_STRING = 5 ;
const int CTR_DATA_TYPE_GROUND_STATE = 6 ;
const int CTR_DATA_TYPE_CLEARENCE_FLAG = 7 ;
const int CTR_DATA_TYPE_DEPARTURE_SEQUENCE = 8 ;
const int CTR_DATA_TYPE_SPEED = 9 ;
const int CTR_DATA_TYPE_MACH = 10 ;
const int CTR_DATA_TYPE_RATE = 11 ;
const int CTR_DATA_TYPE_HEADING = 12 ;
const int CTR_DATA_TYPE_DIRECT_TO = 13 ;
const int REFRESH_PHASE_BACK_BITMAP = 0 ;
const int REFRESH_PHASE_BEFORE_TAGS = 1 ;
const int REFRESH_PHASE_AFTER_TAGS = 2 ;
const int REFRESH_PHASE_AFTER_LISTS = 3 ;
const int TAG_COLOR_DEFAULT = 0 ;
const int TAG_COLOR_RGB_DEFINED = 1 ;
const int TAG_COLOR_NON_CONCERNED = 2 ;
const int TAG_COLOR_NOTIFIED = 3 ;
const int TAG_COLOR_ASSUMED = 4 ;
const int TAG_COLOR_TRANSFER_TO_ME_INITIATED = 5 ;
const int TAG_COLOR_REDUNDANT = 6 ;
const int TAG_COLOR_INFORMATION = 7 ;
const int TAG_COLOR_ONGOING_REQUEST_FROM_ME = 8 ;
const int TAG_COLOR_ONGOING_REQUEST_TO_ME = 9 ;
const int TAG_COLOR_ONGOING_REQUEST_ACCEPTED = 10 ;
const int TAG_COLOR_ONGOING_REQUEST_REFUSED = 11 ;
const int TAG_COLOR_EMERGENCY = 12 ;
const int TAG_TYPE_UNTAGGED = 0 ;
const int TAG_TYPE_TAGGED = 1 ;
const int TAG_TYPE_DETAILED = 2 ;
const int TAG_TYPE_TSSR = 3 ;
const int TAG_ITEM_TYPE_NEXT_LINE = 0 ;
const int TAG_ITEM_TYPE_STATIC_STRING = 1 ;
const int TAG_ITEM_TYPE_SQUAWK = 2 ;
const int TAG_ITEM_TYPE_VERTICAL_SPEED_INDICATOR = 3 ;
const int TAG_ITEM_TYPE_ALTITUDE = 4 ;
const int TAG_ITEM_TYPE_EMERGENCY_INDICATOR = 5 ;
const int TAG_ITEM_TYPE_RADIO_FAILURE_INDICATOR = 6 ;
const int TAG_ITEM_TYPE_HIJACK_INDICATOR = 7 ;
const int TAG_ITEM_TYPE_COLLOSION_ALERT = 8 ;
const int TAG_ITEM_TYPE_CALLSIGN = 9 ;
const int TAG_ITEM_TYPE_AIRCRAFT_CATEGORY = 10 ;
const int TAG_ITEM_TYPE_COMMUNICATION_TYPE = 11 ;
const int TAG_ITEM_TYPE_VERTICAL_SPEED = 12 ;
const int TAG_ITEM_TYPE_GROUND_SPEED_WITH_N = 13 ;
const int TAG_ITEM_TYPE_HANDOFF_TARGET = 14 ;
const int TAG_ITEM_TYPE_OWNER = 15 ;
const int TAG_ITEM_TYPE_PLANE_TYPE = 16 ;
const int TAG_ITEM_TYPE_DESTINATION = 17 ;
const int TAG_ITEM_TYPE_SQUAWK_ERROR = 18 ;
const int TAG_ITEM_TYPE_INFO_STRING = 19 ;
const int TAG_ITEM_TYPE_TEMP_ALTITUDE = 20 ;
const int TAG_ITEM_TYPE_INFO_INDICATOR = 21 ;
const int TAG_ITEM_TYPE_FINAL_ALTITUDE = 22 ;
const int TAG_ITEM_TYPE_ASSIGNED_SPEED = 23 ;
const int TAG_ITEM_TYPE_ASSIGNED_RATE = 24 ;
const int TAG_ITEM_TYPE_ASSIGNED_HEADING = 25 ;
const int TAG_ITEM_TYPE_SECTOR_INDICATOR = 26 ;
const int TAG_ITEM_TYPE_DUPLICATED_SQUAWK = 27 ;
const int TAG_ITEM_TYPE_COPN_COPX_NAME = 28 ;
const int TAG_ITEM_TYPE_COPN_COPX_ALTITUDE = 29 ;
const int TAG_ITEM_TYPE_FIR_COPX_NAME = 30 ;
const int TAG_ITEM_TYPE_COPX_NOT_CLEARED_ALTITUDE = 31 ;
const int TAG_ITEM_TYPE_COPX_AWERE_TEMP_ALTITUDE = 32 ;
const int TAG_ITEM_TYPE_NEXT_LINE_IF_NOT_EMPTY = 33 ;
const int TAG_ITEM_TYPE_DIRECT = 34 ;
const int TAG_ITEM_TYPE_GROUND_SPEED_OPTIONAL_WITH_N = 35 ;
const int TAG_ITEM_TYPE_FIR_COPX_NAME_OPTIONAL = 36 ;
const int TAG_ITEM_TYPE_DESTINATION_OPTIONAL = 37 ;
const int TAG_ITEM_TYPE_PLANE_TYPE_OPTIONAL = 38 ;
const int TAG_ITEM_TYPE_TSSR = 39 ;
const int TAG_ITEM_TYPE_GROUND_SPEED_WOUT_N = 40 ;
const int TAG_ITEM_TYPE_GROUND_SPEED_OPTIONAL_WOUT_N = 41 ;
const int TAG_ITEM_TYPE_COMPOUND_WARNING = 42 ;
const int TAG_ITEM_TYPE_TEMP_IFSET = 43 ;
const int TAG_ITEM_TYPE_ASSIGNED_SPEED_IFSET = 44 ;
const int TAG_ITEM_TYPE_ASSIGNED_RATE_IFSET = 45 ;
const int TAG_ITEM_TYPE_ASSIGNED_HEADING_IFSET = 46 ;
const int TAG_ITEM_TYPE_ASSIGNED_RUNWAY = 47 ;
const int TAG_ITEM_TYPE_COPN_NAME = 48 ;
const int TAG_ITEM_TYPE_COPN_ALTITUDE = 49 ;
const int TAG_ITEM_TYPE_COPN_TIME = 50 ;
const int TAG_ITEM_TYPE_COPX_NAME = 51 ;
const int TAG_ITEM_TYPE_COPX_ALTITUDE = 52 ;
const int TAG_ITEM_TYPE_COPX_TIME = 53 ;
const int TAG_ITEM_TYPE_ETA = 54 ;
const int TAG_ITEM_TYPE_ASSIGNED_STAR = 55 ;
const int TAG_ITEM_TYPE_ASSIGNED_SID = 56 ;
const int TAG_ITEM_TYPE_DEPARTURE_ORDER = 57 ;
const int TAG_ITEM_TYPE_CLEARENCE = 58 ;
const int TAG_ITEM_TYPE_GROUND_STATUS = 59 ;
const int TAG_ITEM_TYPE_ASSIGNED_SQUAWK = 60 ;
const int TAG_ITEM_TYPE_ORIGIN = 61 ;
const int TAG_ITEM_TYPE_RVSM_FLAG = 62 ;
const int TAG_ITEM_TYPE_FLIGHT_RULE = 63 ;
const int TAG_ITEM_TYPE_SECTOR_INDICATOR_FIX = 64 ;
const int TAG_ITEM_TYPE_MANUAL_COORDINATION = 65 ;
const int TAG_ITEM_TYPE_INFO_ALWAYS = 66 ;
const int TAG_ITEM_TYPE_CLAM_WARNING = 67 ;
const int TAG_ITEM_TYPE_RAM_WARNING = 68 ;
const int TAG_ITEM_TYPE_SQ_OR_CALLSIGN = 69 ;
const int TAG_ITEM_TYPE_TWO_LETTER_GS = 70 ;
const int TAG_ITEM_TYPE_TWO_LETTER_GS_OPTIONAL = 71 ;
const int TAG_ITEM_TYPE_TWO_LETTER_ASSIGNED_SPEED = 72 ;
const int TAG_ITEM_TYPE_TWO_LETTER_ASSIGNED_SPEED_IFSET = 73 ;
const int TAG_ITEM_TYPE_NOT_REACHED_TEMPORARY = 74 ;
const int TAG_ITEM_TYPE_NOT_CLEARED_COPN_COPX_ALT = 75 ;
const int TAG_ITEM_TYPE_AIRCRAFT_CATEGORY_WITH_SLASH = 76 ;
const int TAG_ITEM_TYPE_NON_RVSM_FLAG = 77 ;
const int TAG_ITEM_TYPE_AC_TYPE_CATEGORY = 78 ;
const int TAG_ITEM_TYPE_AC_TYPE_CATEGORY_OPTIONAL = 79 ;
const int TAG_ITEM_TYPE_COMMUNICATION_TYPE_REDUCED= 80 ;
const int TAG_ITEM_TYPE_AIRLINE = 81 ;
const int TAG_ITEM_TYPE_FP_STATUS = 82 ;
const int TAG_ITEM_TYPE_ESTIMATE = 83 ;
const int TAG_ITEM_TYPE_ESTIMATE_ALWAYS = 84 ;
const int TAG_ITEM_TYPE_CONFLICTING_AC_CALLSING = 85 ;
const int TAG_ITEM_TYPE_CONFLICT_START = 86 ;
const int TAG_ITEM_TYPE_CONFLICT_END = 87 ;
const int TAG_ITEM_TYPE_CONFLICT_TYPE = 88 ;
const int TAG_ITEM_TYPE_MSAW_INDICATOR = 89 ;
const int TAG_ITEM_TYPE_SIMULATION_INDICATOR = 90 ;
const int TAG_ITEM_TYPE_SIMULATION_WAYPOINT = 91 ;
const int TAG_ITEM_FUNCTION_NO = 0 ;
const int TAG_ITEM_FUNCTION_TOGGLE_ROUTE_DRAW = 1 ;
const int TAG_ITEM_FUNCTION_TOGGLE_ITEM_DISPLAY = 2 ;
const int TAG_ITEM_FUNCTION_TOGGLE_FIR_COPX_DISPLAY = 3 ;
const int TAG_ITEM_FUNCTION_TOGGLE_DEST_DISPLAY = 4 ;
const int TAG_ITEM_FUNCTION_TOGGLE_PLANE_TYPE_DISPLAY = 5 ;
const int TAG_ITEM_FUNCTION_TOGGLE_SI_STYLE = 6 ;
const int TAG_ITEM_FUNCTION_OPEN_FP_DIALOG = 7 ;
const int TAG_ITEM_FUNCTION_HANDOFF_POPUP_MENU = 8 ;
const int TAG_ITEM_FUNCTION_TAKE_HANDOFF = 9 ;
const int TAG_ITEM_FUNCTION_NEXT_ROUTE_POINTS_POPUP = 10 ;
const int TAG_ITEM_FUNCTION_TEMP_ALTITUDE_POPUP = 11 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_SPEED_POPUP = 12 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_RATE_POPUP = 13 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_HEADING_POPUP = 14 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_MACH_POPUP = 15 ;
const int TAG_ITEM_FUNCTION_TOGGLE_PREDICTION_DRAW = 16 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_SID = 17 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_STAR = 18 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_RUNWAY = 19 ;
const int TAG_ITEM_FUNCTION_ASSIGNED_NEXT_CONTROLLER = 20 ;
const int TAG_ITEM_FUNCTION_COPN_NAME = 21 ;
const int TAG_ITEM_FUNCTION_COPX_NAME = 22 ;
const int TAG_ITEM_FUNCTION_COPN_ALTITUDE = 23 ;
const int TAG_ITEM_FUNCTION_COPX_ALTITUDE = 24 ;
const int TAG_ITEM_FUNCTION_ACCEPT_MANUAL_COORDINATION= 25 ;
const int TAG_ITEM_FUNCTION_COPN_COPX_ALTITUDE = 26 ;
const int TAG_ITEM_FUNCTION_SET_CLEARED_FLAG = 27 ;
const int TAG_ITEM_FUNCTION_SET_GROUND_STATUS = 28 ;
const int TAG_ITEM_FUNCTION_EDIT_SCRATCH_PAD = 29 ;
const int TAG_ITEM_FUNCTION_RFL_POPUP = 30 ;
const int TAG_ITEM_FUNCTION_SQUAWK_POPUP = 31 ;
const int TAG_ITEM_FUNCTION_COMMUNICATION_POPUP = 32 ;
const int TAG_ITEM_FUNCTION_CORRELATE_POPUP = 33 ;
const int TAG_ITEM_FUNCTION_SET_FP_STATUS = 34 ;
const int TAG_ITEM_FUNCTION_SET_ESTIMATE = 35 ;
const int TAG_ITEM_FUNCTION_SIMUL_TO_POPUP = 37 ;
const int TAG_ITEM_FUNCTION_SIMUL_LAND_VACATE_POPUP = 38 ;
const int TAG_ITEM_FUNCTION_SIMUL_TAXI_POPUP = 39 ;
const int TAG_ITEM_FUNCTION_SIMUL_TAXI_BEHIND = 40 ;
const int TAG_ITEM_FUNCTION_SIMULATION_POPUP = 41 ;
const int TAG_ITEM_FUNCTION_SIMUL_NEXT_WAYPOINTS = 42 ;
const int TAG_ITEM_FUNCTION_SIMUL_HOLDING_POINTS = 43 ;
const int TAG_DATA_UNCORRELATED_RADAR = 1 ;
const int TAG_DATA_FLIGHT_PLAN_TRACK = 2 ;
const int TAG_DATA_CORRELATED = 3 ;
const int BUTTON_LEFT = 1 ;
const int BUTTON_MIDDLE = 2 ;
const int BUTTON_RIGHT = 3 ;
const int POPUP_ELEMENT_UNCHECKED = 0 ;
const int POPUP_ELEMENT_CHECKED = 1 ;
const int POPUP_ELEMENT_NO_CHECKBOX = 2 ;
const int CONNECTION_TYPE_NO = 0 ;
const int CONNECTION_TYPE_DIRECT = 1 ;
const int CONNECTION_TYPE_VIA_PROXY = 2 ;
const int CONNECTION_TYPE_SIMULATOR_SERVER = 3 ;
const int CONNECTION_TYPE_PLAYBACK = 4 ;
const int CONNECTION_TYPE_SIMULATOR_CLIENT = 5 ;
const int CONNECTION_TYPE_SWEATBOX = 6 ;
const int COORDINATION_STATE_NONE = 1 ;
const int COORDINATION_STATE_REQUESTED_BY_ME = 2 ;
const int COORDINATION_STATE_REQUESTED_BY_OTHER = 3 ;
const int COORDINATION_STATE_ACCEPTED = 4 ;
const int COORDINATION_STATE_REFUSED = 5 ;
const int COORDINATION_STATE_MANUAL_ACCEPTED = 6 ;
const int SECTOR_ELEMENT_INFO = 0 ;
const int SECTOR_ELEMENT_VOR = 1 ;
const int SECTOR_ELEMENT_NDB = 2 ;
const int SECTOR_ELEMENT_AIRPORT = 3 ;
const int SECTOR_ELEMENT_RUNWAY = 4 ;
const int SECTOR_ELEMENT_FIX = 5 ;
const int SECTOR_ELEMENT_STAR = 6 ;
const int SECTOR_ELEMENT_SID = 7 ;
const int SECTOR_ELEMENT_LOW_AIRWAY = 8 ;
const int SECTOR_ELEMENT_HIGH_AIRWAY = 9 ;
const int SECTOR_ELEMENT_HIGH_ARTC = 10 ;
const int SECTOR_ELEMENT_ARTC = 11 ;
const int SECTOR_ELEMENT_LOW_ARTC = 12 ;
const int SECTOR_ELEMENT_GEO = 13 ;
const int SECTOR_ELEMENT_FREE_TEXT = 14 ;
const int SECTOR_ELEMENT_AIRSPACE = 15 ;
const int SECTOR_ELEMENT_POSITION = 16 ;
const int SECTOR_ELEMENT_SIDS_STARS = 17 ;
const int SECTOR_ELEMENT_RADARS = 18 ;
const int SECTOR_ELEMENT_REGIONS = 19 ;
const int SECTOR_ELEMENT_NUMBER = 20 ;
const int SECTOR_ELEMENT_ALL = -1 ;
const int RADAR_POSITION_NONE = 0 ;
const int RADAR_POSITION_PRIMARY = 1 ;
const int RADAR_POSITION_SECONDARY_C = 2 ;
const int RADAR_POSITION_SECONDARY_S = 4 ;
const int RADAR_POSITION_ALL = 7 ;
// forward declaration
class DllSpecEuroScope CSectorElement ;
class DllSpecEuroScope CPosition
{
public:
double m_Latitude ;
double m_Longitude ;
//---CPosition-----------------------------------------------------
inline CPosition ( void )
{
m_Latitude = m_Longitude = 0.0 ;
} ;
//---LoadFromStrings-----------------------------------------------
bool LoadFromStrings ( const char * sLongitude,
const char * sLatitude ) ;
//-----------------------------------------------------------------
// Parameters :
// => sLongitude - longitude value
// => sLatitude - latitude value
//
// Return :
// true - if success
// false - else
//
// Description :
// It loads the position from sectrofile format coordinate strings.
//-----------------------------------------------------------------
//---DistanceTo----------------------------------------------------
double DistanceTo ( const CPosition OtherPosition ) const ;
//-----------------------------------------------------------------
// Parameters :
// => OtherPosition - another position
//
// Return :
// the distance between the positions
//-----------------------------------------------------------------
//---DirectionTo---------------------------------------------------
double DirectionTo ( const CPosition OtherPosition ) const ;
//-----------------------------------------------------------------
// Parameters :
// => OtherPosition - another position
//
// Return :
// the magnetic direction from this to the other position
// using the active sectorfile magnetic deviation value
//-----------------------------------------------------------------
} ;
class DllSpecEuroScope CFlightPlanExtractedRoute
{
private:
ESINDEX m_FpPosition ; // the currently referenced AC position
friend class CFlightPlan ;
public:
//---CFlightPlanExtractedRoute---------------------------------------
inline CFlightPlanExtractedRoute ( void )
{
m_FpPosition = NULL ;
} ;
//---GetPointsNumber-----------------------------------------------
int GetPointsNumber ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The number of points in the extracted route array.
//-----------------------------------------------------------------
//---GetPointsCalculatedIndex--------------------------------------
int GetPointsCalculatedIndex ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The index of point in the extracted route that edge is the
// closest to the actual plane position. The return value is
// between 0 and point number - 2.
// The value may be -1 indicating invalid state.
//-----------------------------------------------------------------
//---GetPointsAssignedIndex----------------------------------------
int GetPointsAssignedIndex ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The index of point in the extracted route that was assigned
// by a controller as next (direct to). The return value is
// between 0 and point number - 1.
// The value may be -1 indicating no direct was given.
//-----------------------------------------------------------------
//---GetPointName--------------------------------------------------
const char * GetPointName ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1.
//
// Return :
// The name of the point in the extracted route array.
//-----------------------------------------------------------------
//---GetPointPosition----------------------------------------------
CPosition GetPointPosition ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1.
//
// Return :
// The coordinates of the point in the extracted route array.
//-----------------------------------------------------------------
//---GetPointAirwayName--------------------------------------------
const char * GetPointAirwayName ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 1 and point number - 1.
// For point 0 it is always empty.
//
// Return :
// The name of the airway or SID/STAR from the previous point
// (Index-1) to this one.
//-----------------------------------------------------------------
//---GetPointAirwayClassification----------------------------------
int GetPointAirwayClassification ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 1 and point number - 1.
// For point 0 it is always direct to.
//
// Return :
// The calssification (see AIRWAY_CLASS_...) of the airway
// from the previous point (Index-1) to this one.
//-----------------------------------------------------------------
//---GetPointDistanceInMinutes-------------------------------------
int GetPointDistanceInMinutes ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1.
//
// Return :
// The distance of the point in minutes from plane current position.
// May return -1 if the point has been passed.
//-----------------------------------------------------------------
//---GetPointCalculatedProfileAltitude-----------------------------
int GetPointCalculatedProfileAltitude ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1.
//
// Return :
// The altitude (no FL/altitude change here) calculated from
// the route, clib/descend profile and COPX altitude constraints.
// The index must be between 0 and point number - 1.
//-----------------------------------------------------------------
} ;
class DllSpecEuroScope CFlightPlanPositionPredictions
{
private:
ESINDEX m_FpPosition ; // the currently referenced AC position
friend class CFlightPlan ;
public:
//---CFlightPlanPositionPredictions----------------------------------
inline CFlightPlanPositionPredictions ( void )
{
m_FpPosition = NULL ;
} ;
//---GetPointsNumber-----------------------------------------------
int GetPointsNumber ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The number of points in the prediction array.
//-----------------------------------------------------------------
//---GetPosition---------------------------------------------------
CPosition GetPosition ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1. The index is
// equal the minutes from now.
//
// Return :
// The predicted position of the AC expected at Index minutes from now.
//-----------------------------------------------------------------
//---GetAltitude---------------------------------------------------
int GetAltitude ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1. The index is
// equal the minutes from now.
//
// Return :
// The predicted altitude/level of the AC expected at Index
// minutes from now. There is no ALT/FL conversion in this
// function.
//-----------------------------------------------------------------
//---GetControllerId-----------------------------------------------
const char * GetControllerId ( int Index ) const ;
//-----------------------------------------------------------------
// Parameters :
// => Index - the index of the requested point. It must be
// between 0 and point number - 1. The index is
// equal the minutes from now.
//
// Return :
// The position ID of the predicted controller at Index
// minutes from now.
//-----------------------------------------------------------------
} ;
class DllSpecEuroScope CRadarTargetPositionData
{
private:
ESINDEX m_RtPosition ; // the currently referenced RT position
ESINDEX m_PosPosition ;
friend class CRadarTarget ;
friend class CFlightPlan ;
public:
//---CRadarTargetPositionData-----------------------------------------
inline CRadarTargetPositionData ( void )
{
m_RtPosition = m_PosPosition = NULL ;
} ;
//---IsValid-------------------------------------------------------
inline bool IsValid ( void ) const
{
return m_RtPosition != NULL ;
} ;
//-----------------------------------------------------------------
// Return :
// true - if the position reference is valid
// false - else
//
// Description :
// It tests if the AC and the position reference is valid.
//-----------------------------------------------------------------
//---IsFPTrackPosition---------------------------------------------
inline bool IsFPTrackPosition ( void ) const
{
return m_PosPosition == NULL ;
} ;
//-----------------------------------------------------------------
// Return :
// true - if the position is a reference to the FP track
// false - else
//-----------------------------------------------------------------
//---GetReceivedTime-----------------------------------------------
int GetReceivedTime ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The number of seconds elapsed since the position data received.
//-----------------------------------------------------------------
//---GetPosition---------------------------------------------------
CPosition GetPosition ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The lat/lon coordinates of the plane.
//-----------------------------------------------------------------
//---GetSquawk-----------------------------------------------------
const char * GetSquawk ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The squawk sent by the pilot
//-----------------------------------------------------------------
//---GetTransponderC------------------------------------------------
bool GetTransponderC ( void ) const ;
//-----------------------------------------------------------------
// Return :
// true - if the plane transponder is C mode
// false - else
//-----------------------------------------------------------------
//---GetTransponderI------------------------------------------------
bool GetTransponderI ( void ) const ;
//-----------------------------------------------------------------
// Return :
// true - if the plane transponder is IDENT mode
// false - else
//-----------------------------------------------------------------
//---GetPressureAltitude-------------------------------------------
int GetPressureAltitude ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The true altitude of the plane in feet.
//-----------------------------------------------------------------
//---GetFlightLevel------------------------------------------------
int GetFlightLevel ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The altitude calculated using stadard pressure. The return
// value is in feet.
//-----------------------------------------------------------------
//---GetReportedGS-------------------------------------------------
int GetReportedGS ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The GS reported by the pilot client
//-----------------------------------------------------------------
//---GetReportedHeading--------------------------------------------
int GetReportedHeading ( void ) const ;
int GetReportedHeadingTrueNorth ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The heading (not tracking) reported by the pilot client.
//-----------------------------------------------------------------
//---GetReportedPitch----------------------------------------------
int GetReportedPitch ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The pitch reported by the pilot client. The value is between
// -180 and +180; negative means above horizon.
//-----------------------------------------------------------------
//---GetReportedBank-----------------------------------------------
int GetReportedBank ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The pitch reported by the pilot client. The value is between
// -180 and +180; negative means right bank.
//-----------------------------------------------------------------
//---GetRadarFlags-------------------------------------------------
int GetRadarFlags ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The logical or combination of the following values:
// - RADAR_POSITION_PRIMARY - primary position received
// - RADAR_POSITION_SECONDARY_C - A+C mode transponder received
// - RADAR_POSITION_SECONDARY_S - S mode transponder received
//
// Description :
// It returns the radar response flags for the specified position.
//-----------------------------------------------------------------
} ;
class DllSpecEuroScope CFlightPlanData
{
private:
ESINDEX m_FpPosition ; // the currently referenced AC position
friend class CFlightPlan ;
public:
//---CFlightPlanData-------------------------------------------
inline CFlightPlanData ( void )
{
m_FpPosition = NULL ;
} ;
//---IsReceived----------------------------------------------------
bool IsReceived ( void ) const ;
//-----------------------------------------------------------------
// Return :
// true - if any kind of FP is received from the servers
// false - else
//-----------------------------------------------------------------
//---IsAmended-----------------------------------------------------
bool IsAmended ( void ) const ;
//-----------------------------------------------------------------
// Return :
// true - if the FP is amended by a controller
// false - else
//-----------------------------------------------------------------
//---AmendFlightPlan-----------------------------------------------
bool AmendFlightPlan ( void ) ;
//-----------------------------------------------------------------
// Return :
// true - if success
// false - else
//
// Description :
// It amends the FP
//-----------------------------------------------------------------
//---GetPlanType---------------------------------------------------
const char * GetPlanType ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The type of the flight plan: V or I.
//-----------------------------------------------------------------
//---SetPlanType---------------------------------------------------
bool SetPlanType ( const char * sPlanType ) ;
//-----------------------------------------------------------------
// Parameters :
// => sPlanType - the type of the FP: V or I.
//
// Return :
// true - if success
// false - else
//
// Description :
// It changes the FP type.
//-----------------------------------------------------------------
//---GetAircraftInfo-----------------------------------------------
const char * GetAircraftInfo ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The unextracted aircraft information.
//-----------------------------------------------------------------
//---SetAircraftInfo-----------------------------------------------
bool SetAircraftInfo ( const char * sInfo ) ;
//-----------------------------------------------------------------
// Parameters :
// => sInfo - the complete aircraft information
//
// Return :
// true - if success
// false - else
//
// Description :
// It changes the FP AC info.
//-----------------------------------------------------------------
//---GetAircraftWtc------------------------------------------------
char GetAircraftWtc ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The weight category of the aircraft.
// Possible values are:
// ? - unknown
// L - light
// M - medium
// H - heavy
// J - super heavy
//-----------------------------------------------------------------
//---GetAircraftType-----------------------------------------------
char GetAircraftType ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The type of the aircraft.
// Possible values are:
// ? - unknown
// L - landplane
// S - seaplane
// A - amphibian
// H - helicopter
// G - gyrocopter
// T - tilt-wing AC
//-----------------------------------------------------------------
//---GetEngineNumber-----------------------------------------------
int GetEngineNumber ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The number of engines.
//-----------------------------------------------------------------
//---GetEngineType-------------------------------------------------
char GetEngineType ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The type of the engines of the aircraft.
// Possible values are:
// ? - unknown
// P - piston
// T - turboprop/turboshaft
// J - jet
// E - electric
//-----------------------------------------------------------------
//---GetCapibilities-----------------------------------------------
char GetCapibilities ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The navigation capibilities of the aircraft.
// Possible values are:
// ? - unknown
// T - no DME, Transponder without mode A+C
// X - no DME, No Transponder
// U - no DME, Transponder with mode A+C
// D - DME, No Transponder
// B - DME, Transponder without mode A+C
// A - DME, Transponder with mode A+C
// M - TACAN only, No Transponder
// N - TACAN only, Transponder without mode A+C
// P - TACAN only, Transponder with mode A+C
// Y - simple RNAV, No Transponder
// C - simple RNAV, Transponder without mode A+C
// I - simple RNAV, Transponder with mode A+C
// E - advanced RNAV with Dual FMS
// F - advanced RNAV with Single FMS
// G - advanced RNAV with GPS or GNSS
// R - advanced RNAV with RNP capability
// W - advanced RNAV with RVSM capability
// Q - advanced RNAV with RNP and RVSM
//-----------------------------------------------------------------
//---IsRvsm--------------------------------------------------------
bool IsRvsm ( void ) const ;
//-----------------------------------------------------------------
// Return :
// true - if the aircraft if RVSM capable
// false - else
//-----------------------------------------------------------------
//---GetManufacturerType-------------------------------------------
const char * GetManufacturerType ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The type description of the aircraft by the manufacturer.
//-----------------------------------------------------------------
//---GetAircraftFPType---------------------------------------------
const char * GetAircraftFPType ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The unencoded AC type as written to the FP.
//-----------------------------------------------------------------
//---GetTrueAirspeed-----------------------------------------------
int GetTrueAirspeed ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The true airspeed filed.
//-----------------------------------------------------------------
//---SetTrueAirspeed-----------------------------------------------
bool SetTrueAirspeed ( int TrueAirspeed ) ;
//-----------------------------------------------------------------
// Parameters :
// => TrueAirspeed - the true airspeed value
//
// Return :
// true - if success
// false - else
//
// Description :
// It sets the true airspeed value.
//-----------------------------------------------------------------
//---GetOrigin-----------------------------------------------------
const char * GetOrigin ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The origin airport.
//-----------------------------------------------------------------
//---SetOrigin-----------------------------------------------------
bool SetOrigin ( const char * sOrigin ) ;
//-----------------------------------------------------------------
// Parameters :
// => sOrigin - the origina airport
//
// Return :
// true - if success
// false - else
//
// Description :
// It changes the origin airport.
//-----------------------------------------------------------------
//---GetFinalAltitude----------------------------------------------
int GetFinalAltitude ( void ) const ;
//-----------------------------------------------------------------
// Return :
// The final requested altitude.
//-----------------------------------------------------------------
//---SetFinalAltitude----------------------------------------------
bool SetFinalAltitude ( int FinalAltitude ) ;
//-----------------------------------------------------------------
// Parameters :
// => FinalAltitude - the final altitude
//
// Return :
// true - if success
// false - else
//
// Description :
// It sets the final altitude.
//-----------------------------------------------------------------