1 /*********************************************************************
2 Copyright 2013 Karl Jones
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
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.
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.
25 For Further Information Please Contact me at
27 http://p.sf.net/kdis/UserGuide
28 *********************************************************************/
30 /********************************************************************
31 EnumFundamentalOperationalData
35 purpose: Enums for Fundamental Operational Data
36 *********************************************************************/
40 #include "./EnumDescriptor.h"
46 /************************************************************************/
47 /* Alternate Parameter 4 */
48 /* Used for an alternative representation of parameter 4 */
50 /* Fundamental Operational Data */
51 /************************************************************************/
53 enum AlternateParameter4
55 OtherAlternateParameter4
= 0,
62 // Returns number of values in the EnumDescriptor for this enum.
63 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
64 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
65 KDIS_EXPORT KUINT32
GetEnumSizeAlternateParameter4();
67 // Returns the EnumDescriptor value for the specified index.
68 // Use GetEnumSize<enum> to get the array size.
69 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
70 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorAlternateParameter4( KUINT32 Index
);
72 KDIS_EXPORT KString
GetEnumAsStringAlternateParameter4( KINT32 Value
);
74 // Returns true if a value was found.
75 KDIS_EXPORT KBOOL
GetEnumFromStringAlternateParameter4( const KString
& Value
, KINT32
& ValueOut
);
77 /************************************************************************/
81 /* Fundamental Operational Data System 1 */
82 /************************************************************************/
90 // Returns number of values in the EnumDescriptor for this enum.
91 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
92 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
93 KDIS_EXPORT KUINT32
GetEnumSizeTCAS();
95 // Returns the EnumDescriptor value for the specified index.
96 // Use GetEnumSize<enum> to get the array size.
97 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
98 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorTCAS( KUINT32 Index
);
100 KDIS_EXPORT KString
GetEnumAsStringTCAS( KINT32 Value
);
102 // Returns true if a value was found.
103 KDIS_EXPORT KBOOL
GetEnumFromStringTCAS( const KString
& Value
, KINT32
& ValueOut
);
107 /************************************************************************/
108 /* Mode 5 Message Format */
109 /* Indicate the Mode 5 Message Format. */
111 /* Mode 5 Interrogator Status */
112 /************************************************************************/
114 enum Mode5MessageFormat
117 ActiveInterrogation
= 1
120 // Returns number of values in the EnumDescriptor for this enum.
121 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
122 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
123 KDIS_EXPORT KUINT32
GetEnumSizeMode5MessageFormat();
125 // Returns the EnumDescriptor value for the specified index.
126 // Use GetEnumSize<enum> to get the array size.
127 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
128 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorMode5MessageFormat( KUINT32 Index
);
130 KDIS_EXPORT KString
GetEnumAsStringMode5MessageFormat( KINT32 Value
);
132 // Returns true if a value was found.
133 KDIS_EXPORT KBOOL
GetEnumFromStringMode5MessageFormat( const KString
& Value
, KINT32
& ValueOut
);
135 /************************************************************************/
137 /* Specifies the validity of a reply that would be transmitted */
138 /* by a Mode 5 transponder if interrogated. */
140 /* Mode 5 Transponder Status */
141 /************************************************************************/
151 // Returns number of values in the EnumDescriptor for this enum.
152 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
153 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
154 KDIS_EXPORT KUINT32
GetEnumSizeMode5Reply();
156 // Returns the EnumDescriptor value for the specified index.
157 // Use GetEnumSize<enum> to get the array size.
158 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
159 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorMode5Reply( KUINT32 Index
);
161 KDIS_EXPORT KString
GetEnumAsStringMode5Reply( KINT32 Value
);
163 // Returns true if a value was found.
164 KDIS_EXPORT KBOOL
GetEnumFromStringMode5Reply( const KString
& Value
, KINT32
& ValueOut
);
166 /************************************************************************/
167 /* Antenna Selection */
168 /* The present Mode 5 transponder antenna selection */
170 /* Mode 5 Transponder Status */
171 /************************************************************************/
173 enum AntennaSelection
175 AntennaSelectionNoStatement
= 0,
181 // Returns number of values in the EnumDescriptor for this enum.
182 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
183 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
184 KDIS_EXPORT KUINT32
GetEnumSizeAntennaSelection();
186 // Returns the EnumDescriptor value for the specified index.
187 // Use GetEnumSize<enum> to get the array size.
188 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
189 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorAntennaSelection( KUINT32 Index
);
191 KDIS_EXPORT KString
GetEnumAsStringAntennaSelection( KINT32 Value
);
193 // Returns true if a value was found.
194 KDIS_EXPORT KBOOL
GetEnumFromStringAntennaSelection( const KString
& Value
, KINT32
& ValueOut
);
196 /************************************************************************/
198 /* The type of platform (air or ground) that is associated with a Mode */
201 /* Mode 5 Transponder Status */
202 /************************************************************************/
206 GroundPlatformType
= 0,
210 // Returns number of values in the EnumDescriptor for this enum.
211 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
212 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
213 KDIS_EXPORT KUINT32
GetEnumSizePlatformType();
215 // Returns the EnumDescriptor value for the specified index.
216 // Use GetEnumSize<enum> to get the array size.
217 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
218 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorPlatformType( KUINT32 Index
);
220 KDIS_EXPORT KString
GetEnumAsStringPlatformType( KINT32 Value
);
222 // Returns true if a value was found.
223 KDIS_EXPORT KBOOL
GetEnumFromStringPlatformType( const KString
& Value
, KINT32
& ValueOut
);
225 /************************************************************************/
226 /* Navigation Source */
227 /* The navigation source. */
229 /* Mode 5 Transponder Basic Data */
230 /************************************************************************/
232 enum NavigationSource
234 NoStatementNavigationSource
= 0,
240 // Returns number of values in the EnumDescriptor for this enum.
241 // This can be used to iterate through all possible enum values by using GetEnumDescriptor<enum>.
242 // If KDIS_USE_ENUM_DESCRIPTORS is not set then 0 will be returned.
243 KDIS_EXPORT KUINT32
GetEnumSizeNavigationSource();
245 // Returns the EnumDescriptor value for the specified index.
246 // Use GetEnumSize<enum> to get the array size.
247 // If KDIS_USE_ENUM_DESCRIPTORS is not set then NULL will be returned.
248 KDIS_EXPORT
const EnumDescriptor
* GetEnumDescriptorNavigationSource( KUINT32 Index
);
250 KDIS_EXPORT KString
GetEnumAsStringNavigationSource( KINT32 Value
);
252 // Returns true if a value was found.
253 KDIS_EXPORT KBOOL
GetEnumFromStringNavigationSource( const KString
& Value
, KINT32
& ValueOut
);
257 } // END namespace ENUMS
258 } // END namespace DATA_TYPES
259 } // END namespace KDIS