KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnumMinefield.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  Minefield
32  created: 06/05/2010
33  author: Karl Jones
34 
35  purpose: Enums used for minefields.
36 *********************************************************************/
37 
38 #pragma once
39 
40 #include "./EnumDescriptor.h"
41 
42 namespace KDIS {
43 namespace DATA_TYPE {
44 namespace ENUMS {
45 
46 /************************************************************************/
47 /* Minefield Type */
48 /* Indicates the type of minefield. */
49 /* Used In: */
50 /* Minefield Appearance */
51 /************************************************************************/
52 
54 {
58 };
59 
61 
62 // Returns true if a value was found.
63 KBOOL GetEnumFromStringMinefieldType( const KString & Value, KINT32 & ValueOut );
64 
65 /************************************************************************/
66 /* Minefield Protocol Mode */
67 /* Specifies which protocol mode is being used to communicate the */
68 /* minefield data. */
69 /* Used In: */
70 /* Minefield_State_PDU */
71 /************************************************************************/
72 
74 {
75  Heartbeat = 0,
76  QPR = 1
77 };
78 
80 
81 // Returns true if a value was found.
82 KBOOL GetEnumFromStringMinefieldProtocolMode( const KString & Value, KINT32 & ValueOut );
83 
84 /************************************************************************/
85 /* Sensor Type */
86 /* Bits 0-3 identify the category of the sensor type and bits 4-15 */
87 /* identify the subcategory within the specified category. */
88 /* I have simplified this so the first word of the enum is the category */
89 /* and the remaining is the sub category. */
90 /* Used In: */
91 /* Minefield_Query_PDU */
92 /* Minefield_Data_PDU */
93 /************************************************************************/
94 
96 {
97  // Category 0 - Other
99  // Category 1 - Optical
112  // Category 2 - FLIR
123  // Category 3 - RADAR
130  // Category 4 - Magnetic
135  // Category 5 - Laser
138  // Category 6 - SONAR
140  // Category 7 - Physical
144  // Category 8 - Multispectral
146 };
147 
149 
150 // Returns true if a value was found.
151 KBOOL GetEnumFromStringSensorType( const KString & Value, KINT32 & ValueOut );
152 
153 /************************************************************************/
154 /* MineFuse */
155 /* Identifies the type of the fuse on a mine(primary and secondary). */
156 /* Used In: */
157 /* MineFusing */
158 /************************************************************************/
159 
161 {
169 };
170 
172 
173 // Returns true if a value was found.
174 KBOOL GetEnumFromStringMineFuse( const KString & Value, KINT32 & ValueOut );
175 
176 /************************************************************************/
177 /* MineAlgae */
178 /* The algae build-up on a mine. */
179 /* Used In: */
180 /* MinePaintScheme */
181 /************************************************************************/
182 
184 {
189 };
190 
192 
193 // Returns true if a value was found.
194 KBOOL GetEnumFromStringMineAlgae( const KString & Value, KINT32 & ValueOut );
195 
196 /************************************************************************/
197 /* PaintScheme */
198 /* The paint scheme of a mine */
199 /* Used In: */
200 /* MinePaintScheme */
201 /************************************************************************/
202 
204 {
215  Red = 10,
216  Blue = 11,
217  Green = 12,
218  Olive = 13,
219  White = 14,
220  Tan = 15,
221  Black = 16,
222  Yellow = 17,
223  Brown = 18
224 };
225 
227 
228 // Returns true if a value was found.
229 KBOOL GetEnumFromStringPaintScheme( const KString & Value, KINT32 & ValueOut );
230 
231 } // END namespace ENUMS
232 } // END namespace DATA_TYPES
233 } // END namespace KDIS
Definition: EnumMinefield.h:214
MineAlgae
Definition: EnumMinefield.h:183
Definition: EnumMinefield.h:207
Definition: EnumMinefield.h:118
KBOOL GetEnumFromStringMinefieldProtocolMode(const KString &Value, KINT32 &ValueOut)
Definition: EnumMinefield.h:98
KBOOL GetEnumFromStringPaintScheme(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringMineAlgae(const KString &Value, KINT32 &ValueOut)
Definition: EnumMinefield.h:119
Definition: EnumMinefield.h:186
Definition: EnumMinefield.h:116
KBOOL GetEnumFromStringSensorType(const KString &Value, KINT32 &ValueOut)
Definition: EnumMinefield.h:188
Definition: EnumMinefield.h:117
SensorType
Definition: EnumMinefield.h:95
Definition: EnumMinefield.h:76
MineFuse
Definition: EnumMinefield.h:160
Definition: EnumMinefield.h:136
MinefieldType
Definition: EnumMinefield.h:53
Definition: EnumMinefield.h:216
Definition: EnumMinefield.h:122
Definition: EnumMinefield.h:219
Definition: EnumMinefield.h:124
Definition: EnumMinefield.h:223
Definition: EnumMinefield.h:206
Definition: EnumMinefield.h:167
Definition: EnumMinefield.h:218
Definition: EnumMinefield.h:165
KString GetEnumAsStringMineAlgae(KINT32 Value)
Definition: EnumMinefield.h:120
Definition: EnumMinefield.h:128
Definition: EnumMinefield.h:215
Definition: EnumMinefield.h:134
Definition: EnumMinefield.h:166
KString GetEnumAsStringMinefieldType(KINT32 Value)
Definition: EnumMinefield.h:168
Definition: EnumMinefield.h:213
int KINT32
Definition: KDefines.h:104
KBOOL GetEnumFromStringMineFuse(const KString &Value, KINT32 &ValueOut)
Definition: EnumMinefield.h:102
Definition: EnumMinefield.h:139
Definition: EnumMinefield.h:57
bool KBOOL
Definition: KDefines.h:119
Definition: EnumMinefield.h:210
Definition: EnumMinefield.h:126
Definition: EnumMinefield.h:131
Definition: EnumMinefield.h:127
std::string KString
Definition: KDefines.h:116
Definition: EnumMinefield.h:187
Definition: EnumMinefield.h:162
Definition: EnumMinefield.h:209
PaintScheme
Definition: EnumMinefield.h:203
KString GetEnumAsStringSensorType(KINT32 Value)
Definition: EnumMinefield.h:114
KString GetEnumAsStringMinefieldProtocolMode(KINT32 Value)
Definition: EnumMinefield.h:221
Definition: EnumMinefield.h:211
Definition: EnumMinefield.h:145
Definition: EnumMinefield.h:121
Definition: EnumMinefield.h:163
KString GetEnumAsStringPaintScheme(KINT32 Value)
Definition: EnumMinefield.h:208
Definition: EnumMinefield.h:141
KBOOL GetEnumFromStringMinefieldType(const KString &Value, KINT32 &ValueOut)
Definition: EnumMinefield.h:132
Definition: EnumMinefield.h:137
Definition: EnumMinefield.h:125
Definition: EnumMinefield.h:205
Definition: EnumMinefield.h:56
Definition: EnumMinefield.h:220
KString GetEnumAsStringMineFuse(KINT32 Value)
Definition: EnumMinefield.h:113
Definition: EnumMinefield.h:222
Definition: EnumMinefield.h:164
Definition: EnumMinefield.h:129
Definition: EnumMinefield.h:212
MinefieldProtocolMode
Definition: EnumMinefield.h:73
Definition: EnumMinefield.h:115
Definition: EnumMinefield.h:133
Definition: EnumMinefield.h:75
Definition: EnumMinefield.h:185
Definition: EnumMinefield.h:217