KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnumIFF.h
Go to the documentation of this file.
1 /*********************************************************************
2 Copyright 2013 Karl Jones
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7 
8 1. Redistributions of source code must retain the above copyright notice, this
9  list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11  this list of conditions and the following disclaimer in the documentation
12  and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 
25 For Further Information Please Contact me at
26 Karljj1@yahoo.com
27 http://p.sf.net/kdis/UserGuide
28 *********************************************************************/
29 
30 /********************************************************************
31  EnumFundamentalOperationalData
32  created: 5/12/2008
33  author: Karl Jones
34 
35  purpose: Enums for Fundamental Operational Data
36 *********************************************************************/
37 
38 #pragma once
39 
40 #include "./EnumDescriptor.h"
41 
42 namespace KDIS {
43 namespace DATA_TYPE {
44 namespace ENUMS {
45 
46 /************************************************************************/
47 /* Alternate Parameter 4 */
48 /* Used for an alternative representation of parameter 4 */
49 /* Used In: */
50 /* Fundamental Operational Data */
51 /************************************************************************/
52 
54 {
56  Valid = 1,
57  Invalid = 2,
59  // 4+ Not used
60 };
61 
63 
64 // Returns true if a value was found.
65 KBOOL GetEnumFromStringAlternateParameter4( const KString & Value, KINT32 & ValueOut );
66 
67 /************************************************************************/
68 /* TCAS */
69 /* TCAS Version */
70 /* Used In: */
71 /* Fundamental Operational Data System 1 */
72 /************************************************************************/
73 
74 enum TCAS
75 {
76  TCAS_I = 0,
77  TCAS_II = 1
78 };
79 
81 
82 // Returns true if a value was found.
83 KBOOL GetEnumFromStringTCAS( const KString & Value, KINT32 & ValueOut );
84 
85 #if DIS_VERSION > 6
86 
87 /************************************************************************/
88 /* Mode 5 Message Format */
89 /* Indicate the Mode 5 Message Format. */
90 /* Used In: */
91 /* Mode 5 Interrogator Status */
92 /************************************************************************/
93 
95 {
98 };
99 
101 
102 // Returns true if a value was found.
103 KBOOL GetEnumFromStringMode5MessageFormat( const KString & Value, KINT32 & ValueOut );
104 
105 /************************************************************************/
106 /* Mode 5 Reply */
107 /* Specifies the validity of a reply that would be transmitted */
108 /* by a Mode 5 transponder if interrogated. */
109 /* Used In: */
110 /* Mode 5 Transponder Status */
111 /************************************************************************/
112 
114 {
119 };
120 
122 
123 // Returns true if a value was found.
124 KBOOL GetEnumFromStringMode5Reply( const KString & Value, KINT32 & ValueOut );
125 
126 /************************************************************************/
127 /* Antenna Selection */
128 /* The present Mode 5 transponder antenna selection */
129 /* Used In: */
130 /* Mode 5 Transponder Status */
131 /************************************************************************/
132 
134 {
136  Top = 1,
137  Bottom = 2,
139 };
140 
142 
143 // Returns true if a value was found.
144 KBOOL GetEnumFromStringAntennaSelection( const KString & Value, KINT32 & ValueOut );
145 
146 /************************************************************************/
147 /* Platform Type */
148 /* The type of platform (air or ground) that is associated with a Mode */
149 /* 5 transponder. */
150 /* Used In: */
151 /* Mode 5 Transponder Status */
152 /************************************************************************/
153 
155 {
158 };
159 
161 
162 // Returns true if a value was found.
163 KBOOL GetEnumFromStringPlatformType( const KString & Value, KINT32 & ValueOut );
164 
165 /************************************************************************/
166 /* Navigation Source */
167 /* The navigation source. */
168 /* Used In: */
169 /* Mode 5 Transponder Basic Data */
170 /************************************************************************/
171 
173 {
175  GPS = 1,
176  INS = 2,
177  INS_GPS = 3
178 };
179 
181 
182 // Returns true if a value was found.
183 KBOOL GetEnumFromStringNavigationSource( const KString & Value, KINT32 & ValueOut );
184 
185 #endif // DIS 6
186 
187 } // END namespace ENUMS
188 } // END namespace DATA_TYPES
189 } // END namespace KDIS
Mode5Reply
Definition: EnumIFF.h:113
Definition: EnumIFF.h:117
KBOOL GetEnumFromStringMode5MessageFormat(const KString &Value, KINT32 &ValueOut)
Definition: EnumIFF.h:116
KString GetEnumAsStringNavigationSource(KINT32 Value)
TCAS
Definition: EnumIFF.h:74
Definition: EnumIFF.h:177
AlternateParameter4
Definition: EnumIFF.h:53
KBOOL GetEnumFromStringNavigationSource(const KString &Value, KINT32 &ValueOut)
Definition: EnumIFF.h:57
KBOOL GetEnumFromStringAlternateParameter4(const KString &Value, KINT32 &ValueOut)
Definition: EnumIFF.h:56
KBOOL GetEnumFromStringAntennaSelection(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringAlternateParameter4(KINT32 Value)
KBOOL GetEnumFromStringPlatformType(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringAntennaSelection(KINT32 Value)
Definition: EnumIFF.h:77
Definition: EnumIFF.h:175
int KINT32
Definition: KDefines.h:104
PlatformType
Definition: EnumIFF.h:154
bool KBOOL
Definition: KDefines.h:119
Definition: EnumIFF.h:136
std::string KString
Definition: KDefines.h:116
KString GetEnumAsStringTCAS(KINT32 Value)
NavigationSource
Definition: EnumIFF.h:172
Mode5MessageFormat
Definition: EnumIFF.h:94
Definition: EnumIFF.h:76
KString GetEnumAsStringPlatformType(KINT32 Value)
KBOOL GetEnumFromStringTCAS(const KString &Value, KINT32 &ValueOut)
Definition: EnumIFF.h:96
Definition: EnumIFF.h:137
KString GetEnumAsStringMode5MessageFormat(KINT32 Value)
AntennaSelection
Definition: EnumIFF.h:133
Definition: EnumIFF.h:138
KString GetEnumAsStringMode5Reply(KINT32 Value)
Definition: EnumIFF.h:176
KBOOL GetEnumFromStringMode5Reply(const KString &Value, KINT32 &ValueOut)
Definition: EnumIFF.h:58