KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EnumSyntheticEnviroment.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  EnumSyntheticEnviroment
32  created: 27/06/2009
33  author: Karl Jones
34 
35  purpose: Enums used in Synthetic Enviroment PDUs
36 *********************************************************************/
37 
38 #pragma once
39 
40 #include "./EnumDescriptor.h"
41 
42 namespace KDIS {
43 namespace DATA_TYPE {
44 namespace ENUMS {
45 
46 /************************************************************************/
47 /* Environment Record Type */
48 /* Specifies the record type */
49 /* Used In: */
50 /* Environmental_Process_PDU */
51 /************************************************************************/
52 
54 {
55  // Geometry Record
56  PointRecord1Type = 0x000A0000,
57  PointRecord2Type = 0x0A000000,
58  LineRecord1Type = 0x000C0000,
59  LineRecord2Type = 0x0C000000,
61  SphereRecord1Type = 0x000D0000,
62  SphereRecord2Type = 0x0D000000,
63  EllipsoidRecord1Type = 0x00100000,
64  EllipsoidRecord2Type = 0x10000000,
65  ConeRecord1Type = 0x00300000,
66  ConeRecord2Type = 0x30000000,
67  UniformGeometryRecordType = 0x00050000, // Not implemented, 12.3.4.16 of SISO-REF-010-2006 has a poor description. It is difficult to understand what should be in it. Karl 27/08/2009
71  GaussianPuffRecordType = 0x70000000,
73  // State Record
74  COMBICStateType = 0x00000100,
75  FlareStateType = 0x00000103
76 };
77 
79 
80 // Returns true if a value was found.
81 KBOOL GetEnumFromStringEnvironmentRecordType( const KString & Value, KINT32 & ValueOut );
82 
83 /************************************************************************/
84 /* Environment Subcategory */
85 /* Indicates the entity's size. */
86 /* Used In: */
87 /* EnvironmentType */
88 /************************************************************************/
89 
91 {
94  SmallSize = 40,
95  MediumSize = 60,
96  LargeSize = 80,
98 };
99 
101 
102 // Returns true if a value was found.
103 KBOOL GetEnumFromStringEnvironmentSubcategory( const KString & Value, KINT32 & ValueOut );
104 
105 /************************************************************************/
106 /* Coordinate System */
107 /* Specifies the coordinate system of the grid for the environmental */
108 /* data contained in the Gridded Data PDU. */
109 /* Used In: */
110 /* Gridded Data PDU */
111 /************************************************************************/
112 
114 {
115  RightHandedCartesian = 0, // Right handed Cartesian (local topographic projection: east, north, up)
116  LeftHandedCartesian = 1, // Left handed Cartesian (local topographic projection: east, north, down)
117  LatLonHeight = 2, // Latitude, Longitude, Height
118  LatLonDepth = 3 // Latitude, Longitude, Depth
119 };
120 
122 
123 // Returns true if a value was found.
124 KBOOL GetEnumFromStringCoordinateSystem( const KString & Value, KINT32 & ValueOut );
125 
126 /************************************************************************/
127 /* Constant Grid */
128 /* Specifies whether the domain grid axes are identical to those of the */
129 /* previous domain update grid for the environmental data sample */
130 /* contained in the PDU */
131 /* Used In: */
132 /* Gridded Data PDU */
133 /************************************************************************/
134 
136 {
137  Constant = 0,
139 };
140 
142 
143 // Returns true if a value was found.
144 KBOOL GetEnumFromStringConstantGrid( const KString & Value, KINT32 & ValueOut );
145 
146 /************************************************************************/
147 /* Grid Data Representation */
148 /* Specifies the value that describes the data representation method */
149 /* for the environmental state variable data contained within the Data */
150 /* Values fields of this record. */
151 /* Used In: */
152 /* Grid Data */
153 /************************************************************************/
154 
156 {
157  Type0 = 0, // 8 bit representation.
158  Type1 = 1, // 16 bit representation.
159  Type2 = 2 // 32 bit representation.
160 };
161 
163 
164 // Returns true if a value was found.
165 KBOOL GetEnumFromStringGridDataRepresentation( const KString & Value, KINT32 & ValueOut );
166 
167 /************************************************************************/
168 /* Object Damage */
169 /* Describes the damaged appearance of the object. */
170 /* Used In: */
171 /* Object Appearance */
172 /************************************************************************/
173 
175 {
179 };
180 
182 
183 // Returns true if a value was found.
184 KBOOL GetEnumFromStringObjectDamage( const KString & Value, KINT32 & ValueOut );
185 
186 /************************************************************************/
187 /* Breach 2 bit */
188 /* Describes the breach status for Log crib, Abatis, Vehicle defilade, */
189 /* and Infantry fighting position. */
190 /* Used In: */
191 /* Point Object Appearance */
192 /* Linear Object Appearance */
193 /* Areal Object Appearance */
194 /************************************************************************/
195 
197 {
201 };
202 
204 
205 // Returns true if a value was found.
206 KBOOL GetEnumFromStringBreach2bit( const KString & Value, KINT32 & ValueOut );
207 
208 /************************************************************************/
209 /* Chemical */
210 /* Describes the chemical content of smoke */
211 /* Used In: */
212 /* Point Object Appearance */
213 /* Linear Object Appearance */
214 /* Areal Object Appearance */
215 /************************************************************************/
216 
218 {
223 };
224 
226 
227 // Returns true if a value was found.
228 KBOOL GetEnumFromStringChemical( const KString & Value, KINT32 & ValueOut );
229 
230 /************************************************************************/
231 /* Visible Side */
232 /* Describes the side of the lane marker which is visible. */
233 /* Used In: */
234 /* Linear Object Appearance */
235 /************************************************************************/
236 
238 {
242 };
243 
245 
246 // Returns true if a value was found.
247 KBOOL GetEnumFromStringVisibleSide( const KString & Value, KINT32 & ValueOut );
248 
249 } // END namespace ENUMS
250 } // END namespace DATA_TYPES
251 } // END namespace KDIS
Definition: EnumSyntheticEnviroment.h:221
Definition: EnumSyntheticEnviroment.h:65
KBOOL GetEnumFromStringCoordinateSystem(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringEnvironmentSubcategory(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:95
Definition: EnumSyntheticEnviroment.h:200
Definition: EnumSyntheticEnviroment.h:96
KString GetEnumAsStringCoordinateSystem(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:60
KString GetEnumAsStringEnvironmentRecordType(KINT32 Value)
ConstantGrid
Definition: EnumSyntheticEnviroment.h:135
Definition: EnumSyntheticEnviroment.h:58
Breach2bit
Definition: EnumSyntheticEnviroment.h:196
Definition: EnumSyntheticEnviroment.h:159
Definition: EnumSyntheticEnviroment.h:240
Definition: EnumSyntheticEnviroment.h:97
Definition: EnumSyntheticEnviroment.h:198
Definition: EnumSyntheticEnviroment.h:222
KBOOL GetEnumFromStringChemical(const KString &Value, KINT32 &ValueOut)
Definition: EnumSyntheticEnviroment.h:176
Definition: EnumSyntheticEnviroment.h:241
KString GetEnumAsStringChemical(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:66
Definition: EnumSyntheticEnviroment.h:116
VisibleSide
Definition: EnumSyntheticEnviroment.h:237
KString GetEnumAsStringObjectDamage(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:71
EnvironmentRecordType
Definition: EnumSyntheticEnviroment.h:53
KBOOL GetEnumFromStringBreach2bit(const KString &Value, KINT32 &ValueOut)
int KINT32
Definition: KDefines.h:104
Chemical
Definition: EnumSyntheticEnviroment.h:217
Definition: EnumSyntheticEnviroment.h:118
KBOOL GetEnumFromStringVisibleSide(const KString &Value, KINT32 &ValueOut)
KBOOL GetEnumFromStringEnvironmentSubcategory(const KString &Value, KINT32 &ValueOut)
Definition: EnumSyntheticEnviroment.h:59
EnvironmentSubcategory
Definition: EnumSyntheticEnviroment.h:90
bool KBOOL
Definition: KDefines.h:119
KBOOL GetEnumFromStringGridDataRepresentation(const KString &Value, KINT32 &ValueOut)
KString GetEnumAsStringGridDataRepresentation(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:67
KBOOL GetEnumFromStringEnvironmentRecordType(const KString &Value, KINT32 &ValueOut)
CoordinateSystem
Definition: EnumSyntheticEnviroment.h:113
Definition: EnumSyntheticEnviroment.h:92
std::string KString
Definition: KDefines.h:116
Definition: EnumSyntheticEnviroment.h:158
Definition: EnumSyntheticEnviroment.h:157
KString GetEnumAsStringBreach2bit(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:115
KBOOL GetEnumFromStringObjectDamage(const KString &Value, KINT32 &ValueOut)
Definition: EnumSyntheticEnviroment.h:178
Definition: EnumSyntheticEnviroment.h:62
Definition: EnumSyntheticEnviroment.h:239
KString GetEnumAsStringConstantGrid(KINT32 Value)
Definition: EnumSyntheticEnviroment.h:177
Definition: EnumSyntheticEnviroment.h:70
Definition: EnumSyntheticEnviroment.h:94
Definition: EnumSyntheticEnviroment.h:69
Definition: EnumSyntheticEnviroment.h:61
Definition: EnumSyntheticEnviroment.h:68
Definition: EnumSyntheticEnviroment.h:220
GridDataRepresentation
Definition: EnumSyntheticEnviroment.h:155
Definition: EnumSyntheticEnviroment.h:137
Definition: EnumSyntheticEnviroment.h:93
Definition: EnumSyntheticEnviroment.h:72
Definition: EnumSyntheticEnviroment.h:75
Definition: EnumSyntheticEnviroment.h:57
Definition: EnumSyntheticEnviroment.h:74
Definition: EnumSyntheticEnviroment.h:219
Definition: EnumSyntheticEnviroment.h:199
Definition: EnumSyntheticEnviroment.h:138
KBOOL GetEnumFromStringConstantGrid(const KString &Value, KINT32 &ValueOut)
Definition: EnumSyntheticEnviroment.h:117
ObjectDamage
Definition: EnumSyntheticEnviroment.h:174
Definition: EnumSyntheticEnviroment.h:63
Definition: EnumSyntheticEnviroment.h:56
Definition: EnumSyntheticEnviroment.h:64
KString GetEnumAsStringVisibleSide(KINT32 Value)