KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnumRadio.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  EnumRadio
32  created: 21/08/2008
33  author: Karl Jones
34 
35  purpose: Enums for radio parameters
36 *********************************************************************/
37 
38 #pragma once
39 
40 #include "./EnumDescriptor.h"
41 
42 namespace KDIS {
43 namespace DATA_TYPE {
44 namespace ENUMS {
45 
46 /************************************************************************/
47 /* Transmit State */
48 /* Radio Tranmit State */
49 /* Used In: */
50 /* Tranmitter PDU */
51 /************************************************************************/
52 
54 {
55  Off = 0,
58 };
59 
61 
62 // Returns true if a value was found.
63 KBOOL GetEnumFromStringTransmitState( const KString & Value, KINT32 & ValueOut );
64 
65 /************************************************************************/
66 /* Radio Input Source */
67 /* Radio in put source, represents the part of the entity that is */
68 /* transmitting. */
69 /* Used In: */
70 /* Tranmitter PDU */
71 /************************************************************************/
72 
74 {
76  Pilot = 1,
77  Copilot = 2,
79  Driver = 4,
80  Loader = 5,
81  Gunner = 6,
82  Commander = 7,
85 };
86 
88 
89 // Returns true if a value was found.
90 KBOOL GetEnumFromStringRadioInputSource( const KString & Value, KINT32 & ValueOut );
91 
92 /************************************************************************/
93 /* Antenna Pattern Type */
94 /* Type of representation used for radiation pattern from antenna */
95 /* transmitting. */
96 /* Used In: */
97 /* Tranmitter PDU */
98 /************************************************************************/
99 
101 {
103  Beam = 1,
105 };
106 
108 
109 // Returns true if a value was found.
110 KBOOL GetEnumFromStringAntennaPatternType( const KString & Value, KINT32 & ValueOut );
111 
112 /************************************************************************/
113 /* Radio Major Modulation */
114 /* Major Modulation Field */
115 /* Used In: */
116 /* Modulation Type */
117 /************************************************************************/
118 
120 {
124  Angle = 3,
126  Pulse = 5,
129 };
130 
132 
133 // Returns true if a value was found.
134 KBOOL GetEnumFromStringRadioMajorModulation( const KString & Value, KINT32 & ValueOut );
135 
136 /************************************************************************/
137 /* Modulation Detail */
138 /* Various Enums dependent on Radio Major Modulation */
139 /* Used In: */
140 /* Modulation Type */
141 /************************************************************************/
142 
144 {
156 };
157 
159 
160 // Returns true if a value was found.
161 KBOOL GetEnumFromStringDetailAmplitude( const KString & Value, KINT32 & ValueOut );
162 
164 {
167 };
168 
170 
171 // Returns true if a value was found.
172 KBOOL GetEnumFromStringDetailAmplitudeAndAngle( const KString & Value, KINT32 & ValueOut );
173 
175 {
180 };
181 
183 
184 // Returns true if a value was found.
185 KBOOL GetEnumFromStringDetailAngle( const KString & Value, KINT32 & ValueOut );
186 
188 {
191 };
192 
194 
195 // Returns true if a value was found.
196 KBOOL GetEnumFromStringDetailCombination( const KString & Value, KINT32 & ValueOut );
197 
199 {
204 };
205 
207 
208 // Returns true if a value was found.
209 KBOOL GetEnumFromStringDetailPulse( const KString & Value, KINT32 & ValueOut );
210 
212 {
215 };
216 
218 
219 // Returns true if a value was found.
220 KBOOL GetEnumFromStringDetailUnmodulated( const KString & Value, KINT32 & ValueOut );
221 
223 {
225 };
226 
228 
229 // Returns true if a value was found.
230 KBOOL GetEnumFromStringDetailCarrierPhaseShift( const KString & Value, KINT32 & ValueOut );
231 
232 /************************************************************************/
233 /* Modulation System */
234 /* Specifies the interpretation of the modulation parameter field(s) */
235 /* Used In: */
236 /* Modulation Type */
237 /************************************************************************/
238 
240 {
243  HQ = 2,
244  HQII = 3,
245  HQIIA = 4,
246  SINCGARS = 5,
250 };
251 
253 
254 // Returns true if a value was found.
255 KBOOL GetEnumFromStringModulationSystem( const KString & Value, KINT32 & ValueOut );
256 
257 /************************************************************************/
258 /* Crypto System Type */
259 /* Identifies the crypto equipment used in a tranmission */
260 /* Used In: */
261 /* Transmitter PDU */
262 /************************************************************************/
263 
265 {
267  KY_28 = 1,
271 };
272 
274 
275 // Returns true if a value was found.
276 KBOOL GetEnumFromStringCryptoSystemType( const KString & Value, KINT32 & ValueOut );
277 
278 /************************************************************************/
279 /* Encryption Mode */
280 /* Identifies the mode of encryption */
281 /* Used In: */
282 /* CryptoSystem */
283 /************************************************************************/
284 
286 {
287  BaseBand = 0,
289 };
290 
292 
293 // Returns true if a value was found.
294 KBOOL GetEnumFromStringEncryptionMode( const KString & Value, KINT32 & ValueOut );
295 
296 /************************************************************************/
297 /* Encoding Class */
298 /* Encoding class for a signal PDU */
299 /* Used In: */
300 /* EncodingScheme */
301 /************************************************************************/
302 
304 {
309 };
310 
312 
313 // Returns true if a value was found.
314 KBOOL GetEnumFromStringEncodingClass( const KString & Value, KINT32 & ValueOut );
315 
316 /************************************************************************/
317 /* Encoding Type */
318 /* Encoding type when EncodingClass is audio */
319 /* Used In: */
320 /* EncodingScheme */
321 /************************************************************************/
322 
324 {
335 
336 };
337 
339 
340 // Returns true if a value was found.
341 KBOOL GetEnumFromStringEncodingType( const KString & Value, KINT32 & ValueOut );
342 
343 /************************************************************************/
344 /* TDL Type */
345 /* Tactical Data Link Type */
346 /* Used In: */
347 /* EncodingScheme */
348 /************************************************************************/
349 
351 {
353  PADIL = 1,
355  ATDL_1 = 3,
361  IJMS = 9,
363  Link4C = 11,
364  TIBS = 12,
365  ATL = 13,
368  MILSTAR = 16,
369  ATHS = 17,
370  OTHGOLD = 18,
371  TACELINT = 19,
408  SpaceCDL = 56,
419  GC3 = 99,
423  Link22 = 103,
425 };
426 
428 
429 // Returns true if a value was found.
430 KBOOL GetEnumFromStringTDLType( const KString & Value, KINT32 & ValueOut );
431 
432 /************************************************************************/
433 /* Control Type */
434 /* Type of control requested */
435 /* Used In: */
436 /* Intercom_Control_PDU */
437 /************************************************************************/
438 
440 {
447  // 6-255 Reserved
448 };
449 
451 
452 // Returns true if a value was found.
453 KBOOL GetEnumFromStringControlType( const KString & Value, KINT32 & ValueOut );
454 
455 /************************************************************************/
456 /* Communications Channel Type */
457 /* Communications Channel Type enumerations */
458 /* Used In: */
459 /* Intercom_Control_PDU */
460 /************************************************************************/
461 
463 {
469  // 5-255 Reserved
470 };
471 
473 
474 // Returns true if a value was found.
475 KBOOL GetEnumFromStringChannelType( const KString & Value, KINT32 & ValueOut );
476 
478 {
481 };
482 
484 
485 // Returns true if a value was found.
486 KBOOL GetEnumFromStringChannelClass( const KString & Value, KINT32 & ValueOut );
487 
488 /************************************************************************/
489 /* Transmit Line State */
490 /* Identifies the current transmit state of the line at the intercon */
491 /* source. */
492 /* Used In: */
493 /* Intercom_Control_PDU */
494 /************************************************************************/
495 
497 {
501  // 3-255 Reserved
502 };
503 
505 
506 // Returns true if a value was found.
507 KBOOL GetEnumFromStringTransmitLineState( const KString & Value, KINT32 & ValueOut );
508 
509 /************************************************************************/
510 /* Line State Command */
511 /* specifies the detailed type requested when the control type is */
512 /* request or acknowledge */
513 /* Used In: */
514 /* Intercom_Control_PDU */
515 /************************************************************************/
516 
518 {
523  // 4-255 Reserved
524 };
525 
527 
528 // Returns true if a value was found.
529 KBOOL GetEnumFromStringLineStateCommand( const KString & Value, KINT32 & ValueOut );
530 
531 /************************************************************************/
532 /* AdditionalIntrCommParamType */
533 /* specifies the type of additonal intercom parameter data included. */
534 /* Used In: */
535 /* Intercom_Control_PDU */
536 /************************************************************************/
537 
539 {
543 };
544 
546 
547 // Returns true if a value was found.
549 
550 #if DIS_VERSION > 6
551 /************************************************************************/
552 /* AttachedIndicator */
553 /* Used to indicate whether the object is attached to an entity or */
554 /* object. */
555 /* Used In: */
556 /* PDU Header 7 */
557 /************************************************************************/
558 
560 {
564 };
565 
567 
568 // Returns true if a value was found.
569 KBOOL GetEnumFromStringAttachedIndicator( const KString & Value, KINT32 & ValueOut );
570 
571 #endif
572 
573 } // END namespace ENUMS
574 } // END namespace DATA_TYPES
575 } // END namespace KDIS
Definition: EnumRadio.h:200
KBOOL GetEnumFromStringControlType(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringDetailUnmodulated(KINT32 Value)
Definition: EnumRadio.h:377
Definition: EnumRadio.h:55
Definition: EnumRadio.h:361
Definition: EnumRadio.h:305
KString GetEnumAsStringDetailCarrierPhaseShift(KINT32 Value)
Definition: EnumRadio.h:79
KBOOL GetEnumFromStringDetailCombination(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringDetailAmplitudeAndAngle(KINT32 Value)
Definition: EnumRadio.h:360
AdditionalIntrCommParamType
Definition: EnumRadio.h:538
KString GetEnumAsStringAntennaPatternType(KINT32 Value)
Definition: EnumRadio.h:365
Definition: EnumRadio.h:371
KBOOL GetEnumFromStringLineStateCommand(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:78
Definition: EnumRadio.h:287
KBOOL GetEnumFromStringAttachedIndicator(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:368
ChannelType
Definition: EnumRadio.h:462
DetailAngle
Definition: EnumRadio.h:174
Definition: EnumRadio.h:77
KString GetEnumAsStringCryptoSystemType(KINT32 Value)
Definition: EnumRadio.h:354
KString GetEnumAsStringEncodingType(KINT32 Value)
Definition: EnumRadio.h:500
Definition: EnumRadio.h:333
Definition: EnumRadio.h:376
Definition: EnumRadio.h:364
KBOOL GetEnumFromStringTransmitState(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringChannelType(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:249
Definition: EnumRadio.h:408
Definition: EnumRadio.h:80
DetailUnmodulated
Definition: EnumRadio.h:211
Definition: EnumRadio.h:267
KString GetEnumAsStringEncodingClass(KINT32 Value)
Definition: EnumRadio.h:499
ControlType
Definition: EnumRadio.h:439
RadioInputSource
Definition: EnumRadio.h:73
KBOOL GetEnumFromStringDetailPulse(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:465
Definition: EnumRadio.h:306
Definition: EnumRadio.h:76
KBOOL GetEnumFromStringAntennaPatternType(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringRadioMajorModulation(KINT32 Value)
Definition: EnumRadio.h:84
KBOOL GetEnumFromStringDetailUnmodulated(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringDetailAmplitude(KINT32 Value)
AttachedIndicator
Definition: EnumRadio.h:559
Definition: EnumRadio.h:332
Definition: EnumRadio.h:352
KString GetEnumAsStringAttachedIndicator(KINT32 Value)
KBOOL GetEnumFromStringChannelClass(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringDetailAngle(const KString &Value, KINT32 &ValueOut)
DetailAmplitude
Definition: EnumRadio.h:143
Definition: EnumRadio.h:102
Definition: EnumRadio.h:423
TransmitState
Definition: EnumRadio.h:53
KString GetEnumAsStringDetailPulse(KINT32 Value)
KString GetEnumAsStringDetailCombination(KINT32 Value)
Definition: EnumRadio.h:404
Definition: EnumRadio.h:370
KBOOL GetEnumFromStringRadioInputSource(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringDetailAmplitude(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:414
KString GetEnumAsStringLineStateCommand(KINT32 Value)
EncodingClass
Definition: EnumRadio.h:303
KString GetEnumAsStringChannelType(KINT32 Value)
Definition: EnumRadio.h:468
KString GetEnumAsStringChannelClass(KINT32 Value)
int KINT32
Definition: KDefines.h:104
KBOOL GetEnumFromStringEncodingType(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringTransmitState(KINT32 Value)
TDLType
Definition: EnumRadio.h:350
Definition: EnumRadio.h:126
KString GetEnumAsStringDetailAngle(KINT32 Value)
bool KBOOL
Definition: KDefines.h:119
KString GetEnumAsStringModulationSystem(KINT32 Value)
Definition: EnumRadio.h:122
Definition: EnumRadio.h:331
KBOOL GetEnumFromStringTransmitLineState(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:81
KString GetEnumAsStringAdditionalIntrCommParamType(KINT32 Value)
std::string KString
Definition: KDefines.h:116
DetailAmplitudeAndAngle
Definition: EnumRadio.h:163
Definition: EnumRadio.h:245
TransmitLineState
Definition: EnumRadio.h:496
Definition: EnumRadio.h:201
Definition: EnumRadio.h:127
ModulationSystem
Definition: EnumRadio.h:239
Definition: EnumRadio.h:325
Definition: EnumRadio.h:366
Definition: EnumRadio.h:124
Definition: EnumRadio.h:244
Definition: EnumRadio.h:308
KBOOL GetEnumFromStringDetailAmplitudeAndAngle(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringRadioMajorModulation(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:243
Definition: EnumRadio.h:125
KString GetEnumAsStringTransmitLineState(KINT32 Value)
Definition: EnumRadio.h:82
Definition: EnumRadio.h:419
LineStateCommand
Definition: EnumRadio.h:517
DetailCombination
Definition: EnumRadio.h:187
KBOOL GetEnumFromStringTDLType(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringEncryptionMode(KINT32 Value)
Definition: EnumRadio.h:288
KBOOL GetEnumFromStringEncodingClass(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:353
Definition: EnumRadio.h:369
DetailPulse
Definition: EnumRadio.h:198
DetailCarrierPhaseShift
Definition: EnumRadio.h:222
Definition: EnumRadio.h:405
KBOOL GetEnumFromStringAdditionalIntrCommParamType(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:363
KString GetEnumAsStringControlType(KINT32 Value)
RadioMajorModulation
Definition: EnumRadio.h:119
EncodingType
Definition: EnumRadio.h:323
KBOOL GetEnumFromStringDetailCarrierPhaseShift(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:246
Definition: EnumRadio.h:356
Definition: EnumRadio.h:402
Definition: EnumRadio.h:378
Definition: EnumRadio.h:247
AntennaPatternType
Definition: EnumRadio.h:100
ChannelClass
Definition: EnumRadio.h:477
EncryptionMode
Definition: EnumRadio.h:285
KBOOL GetEnumFromStringModulationSystem(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringEncryptionMode(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:103
KString GetEnumAsStringTDLType(KINT32 Value)
Definition: EnumRadio.h:176
Definition: EnumRadio.h:406
CryptoSystemType
Definition: EnumRadio.h:264
Definition: EnumRadio.h:355
KBOOL GetEnumFromStringCryptoSystemType(const KString &Value, KINT32 &ValueOut)
Definition: EnumRadio.h:362
KString GetEnumAsStringRadioInputSource(KINT32 Value)