chore: added config.h.in generated by CMake
[KDIS.git] / test / UnitTests / DataType_EncodeDecode6.cpp
blobf6860a9c2b11f1eb2258ccdcc5900a739686eded
1 #include <iostream>
2 #include "gtest/gtest.h"
4 #include "KDIS/KDefines.h"
6 #if DIS_VERSION > 5
8 #include "KDIS/DataTypes/AcousticEmitterSystem.h"
9 #include "KDIS/DataTypes/AggregateIdentifier.h"
10 #include "KDIS/DataTypes/AggregateMarking.h"
11 #include "KDIS/DataTypes/AggregateType.h"
12 #include "KDIS/DataTypes/APA.h"
13 #include "KDIS/DataTypes/ArealObjectAppearance.h"
14 #include "KDIS/DataTypes/BeamData.h"
15 #include "KDIS/DataTypes/BoundingSphereRecord.h"
16 #include "KDIS/DataTypes/COMBICState.h"
17 #include "KDIS/DataTypes/CommunicationsChannelType.h"
18 #include "KDIS/DataTypes/ConeRecord1.h"
19 #include "KDIS/DataTypes/ConeRecord2.h"
20 #include "KDIS/DataTypes/EllipsoidRecord1.h"
21 #include "KDIS/DataTypes/EllipsoidRecord2.h"
22 #include "KDIS/DataTypes/EntityDestinationRecord.h"
23 #include "KDIS/DataTypes/EnvironmentType.h"
24 #include "KDIS/DataTypes/FlareState.h"
25 #include "KDIS/DataTypes/FundamentalOperationalData.h"
26 #include "KDIS/DataTypes/GaussianPlumeRecord.h"
27 #include "KDIS/DataTypes/GaussianPuffRecord.h"
28 #include "KDIS/DataTypes/GED_BasicFixedWingAircraft.h"
29 #include "KDIS/DataTypes/GED_BasicGroundCombatSoldier.h"
30 #include "KDIS/DataTypes/GED_BasicGroundCombatVehicle.h"
31 #include "KDIS/DataTypes/GED_BasicRotorWingAircraft.h"
32 #include "KDIS/DataTypes/GED_EnhancedFixedWingAircraft.h"
33 #include "KDIS/DataTypes/GED_EnhancedGroundCombatSoldier.h"
34 #include "KDIS/DataTypes/GED_EnhancedGroundCombatVehicle.h"
35 #include "KDIS/DataTypes/GED_EnhancedRotaryWingAircraft.h"
36 #include "KDIS/DataTypes/GED_GroundLogisticsVehicle.h"
37 #include "KDIS/DataTypes/GridAxisIrregular.h"
38 #include "KDIS/DataTypes/GridAxisRegular.h"
39 #include "KDIS/DataTypes/GridDataType0.h"
40 #include "KDIS/DataTypes/GridDataType1.h"
41 #include "KDIS/DataTypes/GridDataType2.h"
42 #include "KDIS/DataTypes/GroupAssignmentRecord.h"
43 #include "KDIS/DataTypes/GroupDestinationRecord.h"
44 #include "KDIS/DataTypes/IFF_ATC_NAVAIDS_FundamentalParameterData.h"
45 #include "KDIS/DataTypes/IFF_Layer2.h"
46 #include "KDIS/DataTypes/IntercomCommunicationParameters.h"
47 #include "KDIS/DataTypes/LayerHeader.h"
48 #include "KDIS/DataTypes/LE_DeadReckoningParameter.h"
49 #include "KDIS/DataTypes/LE_EntityIdentifier.h"
50 #include "KDIS/DataTypes/LE_EulerAngles.h"
51 #include "KDIS/DataTypes/LinearObjectAppearance.h"
52 #include "KDIS/DataTypes/LinearSegmentParameter.h"
53 #include "KDIS/DataTypes/LineRecord1.h"
54 #include "KDIS/DataTypes/LineRecord2.h"
55 #include "KDIS/DataTypes/MinefieldAppearance.h"
56 #include "KDIS/DataTypes/MinefieldDataFilter.h"
57 #include "KDIS/DataTypes/MineFusing.h"
58 #include "KDIS/DataTypes/MinePaintScheme.h"
59 #include "KDIS/DataTypes/NamedLocationIdentifier.h"
60 #include "KDIS/DataTypes/ObjectAppearance.h"
61 #include "KDIS/DataTypes/ObjectType.h"
62 #include "KDIS/DataTypes/OrientationError.h"
63 #include "KDIS/DataTypes/PerimeterPointCoordinate.h"
64 #include "KDIS/DataTypes/PointObjectAppearance.h"
65 #include "KDIS/DataTypes/PointRecord1.h"
66 #include "KDIS/DataTypes/PointRecord2.h"
67 #include "KDIS/DataTypes/PositionError.h"
68 #include "KDIS/DataTypes/PropulsionSystem.h"
69 #include "KDIS/DataTypes/RecordSet.h"
70 #include "KDIS/DataTypes/RectangularVolumeRecord1.h"
71 #include "KDIS/DataTypes/RectangularVolumeRecord2.h"
72 #include "KDIS/DataTypes/RectangularVolumeRecord3.h"
73 #include "KDIS/DataTypes/RelationshipRecord.h"
74 #include "KDIS/DataTypes/RelativeWorldCoordinates.h"
75 #include "KDIS/DataTypes/SecondaryOperationalData.h"
76 #include "KDIS/DataTypes/Shaft.h"
77 #include "KDIS/DataTypes/SilentAggregateSystem.h"
78 #include "KDIS/DataTypes/SilentEntitySystem.h"
79 #include "KDIS/DataTypes/SphereRecord1.h"
80 #include "KDIS/DataTypes/SphereRecord2.h"
81 #include "KDIS/DataTypes/SystemIdentifier.h"
82 #include "KDIS/DataTypes/UnderwaterAcousticEmitterBeam.h"
83 #include "KDIS/DataTypes/UnderwaterAcousticEmitterSystem.h"
84 #include "KDIS/DataTypes/UnderwaterAcousticFundamentalParameterData.h"
85 #include "KDIS/DataTypes/VectoringNozzleSystem.h"
87 using namespace KDIS;
88 using namespace DATA_TYPE;
90 TEST(DataType_EncodeDecode6, AcousticEmitterSystem)
92 AcousticEmitterSystem dtIn;
93 KDataStream stream = dtIn.Encode();
94 AcousticEmitterSystem dtOut(stream);
95 EXPECT_EQ(dtIn, dtOut);
96 EXPECT_EQ(0, stream.GetBufferSize());
99 TEST(DataType_EncodeDecode6, AggregateIdentifier)
101 AggregateIdentifier dtIn;
102 KDataStream stream = dtIn.Encode();
103 AggregateIdentifier dtOut(stream);
104 EXPECT_EQ(dtIn, dtOut);
105 EXPECT_EQ(0, stream.GetBufferSize());
108 TEST(DataType_EncodeDecode6, AggregateMarking)
110 AggregateMarking dtIn;
111 KDataStream stream = dtIn.Encode();
112 AggregateMarking dtOut(stream);
113 EXPECT_EQ(dtIn, dtOut);
114 EXPECT_EQ(0, stream.GetBufferSize());
117 TEST(DataType_EncodeDecode6, AggregateType)
119 AggregateType dtIn;
120 KDataStream stream = dtIn.Encode();
121 AggregateType dtOut(stream);
122 EXPECT_EQ(dtIn, dtOut);
123 EXPECT_EQ(0, stream.GetBufferSize());
126 TEST(DataType_EncodeDecode6, APA)
128 APA dtIn;
129 KDataStream stream = dtIn.Encode();
130 APA dtOut(stream);
131 EXPECT_EQ(dtIn, dtOut);
132 EXPECT_EQ(0, stream.GetBufferSize());
135 TEST(DataType_EncodeDecode6, ArealObjectAppearance)
137 ArealObjectAppearance dtIn;
138 KDataStream stream = dtIn.Encode();
139 ArealObjectAppearance dtOut(stream);
140 EXPECT_EQ(dtIn, dtOut);
141 EXPECT_EQ(0, stream.GetBufferSize());
144 TEST(DataType_EncodeDecode6, BeamData)
146 BeamData dtIn;
147 KDataStream stream = dtIn.Encode();
148 BeamData dtOut(stream);
149 EXPECT_EQ(dtIn, dtOut);
150 EXPECT_EQ(0, stream.GetBufferSize());
153 TEST(DataType_EncodeDecode6, BoundingSphereRecord)
155 BoundingSphereRecord dtIn;
156 KDataStream stream = dtIn.Encode();
157 BoundingSphereRecord dtOut(stream);
158 EXPECT_EQ(dtIn, dtOut);
159 EXPECT_EQ(0, stream.GetBufferSize());
162 TEST(DataType_EncodeDecode6, COMBICState)
164 COMBICState dtIn;
165 KDataStream stream = dtIn.Encode();
166 COMBICState dtOut(stream);
167 EXPECT_EQ(dtIn, dtOut);
168 EXPECT_EQ(0, stream.GetBufferSize());
171 TEST(DataType_EncodeDecode6, CommunicationsChannelType)
173 CommunicationsChannelType dtIn;
174 KDataStream stream = dtIn.Encode();
175 CommunicationsChannelType dtOut(stream);
176 EXPECT_EQ(dtIn, dtOut);
177 EXPECT_EQ(0, stream.GetBufferSize());
180 TEST(DataType_EncodeDecode6, ConeRecord1)
182 ConeRecord1 dtIn;
183 KDataStream stream = dtIn.Encode();
184 ConeRecord1 dtOut(stream);
185 EXPECT_EQ(dtIn, dtOut);
186 EXPECT_EQ(0, stream.GetBufferSize());
189 TEST(DataType_EncodeDecode6, ConeRecord2)
191 ConeRecord2 dtIn;
192 KDataStream stream = dtIn.Encode();
193 ConeRecord2 dtOut(stream);
194 EXPECT_EQ(dtIn, dtOut);
195 EXPECT_EQ(0, stream.GetBufferSize());
198 TEST(DataType_EncodeDecode6, EllipsoidRecord1)
200 EllipsoidRecord1 dtIn;
201 KDataStream stream = dtIn.Encode();
202 EllipsoidRecord1 dtOut(stream);
203 EXPECT_EQ(dtIn, dtOut);
204 EXPECT_EQ(0, stream.GetBufferSize());
207 TEST(DataType_EncodeDecode6, EllipsoidRecord2)
209 EllipsoidRecord2 dtIn;
210 KDataStream stream = dtIn.Encode();
211 EllipsoidRecord2 dtOut(stream);
212 EXPECT_EQ(dtIn, dtOut);
213 EXPECT_EQ(0, stream.GetBufferSize());
216 TEST(DataType_EncodeDecode6, EntityDestinationRecord)
218 EntityDestinationRecord dtIn;
219 KDataStream stream = dtIn.Encode();
220 EntityDestinationRecord dtOut(stream);
221 EXPECT_EQ(dtIn, dtOut);
222 EXPECT_EQ(0, stream.GetBufferSize());
225 TEST(DataType_EncodeDecode6, EnvironmentType)
227 EnvironmentType dtIn;
228 KDataStream stream = dtIn.Encode();
229 EnvironmentType dtOut(stream);
230 EXPECT_EQ(dtIn, dtOut);
231 EXPECT_EQ(0, stream.GetBufferSize());
234 TEST(DataType_EncodeDecode6, FlareState)
236 FlareState dtIn;
237 KDataStream stream = dtIn.Encode();
238 FlareState dtOut(stream);
239 EXPECT_EQ(dtIn, dtOut);
240 EXPECT_EQ(0, stream.GetBufferSize());
243 TEST(DataType_EncodeDecode6, FundamentalOperationalData)
245 FundamentalOperationalData dtIn;
246 KDataStream stream = dtIn.Encode();
247 FundamentalOperationalData dtOut(stream);
248 EXPECT_EQ(dtIn, dtOut);
249 EXPECT_EQ(0, stream.GetBufferSize());
252 TEST(DataType_EncodeDecode6, GaussianPlumeRecord)
254 GaussianPlumeRecord dtIn;
255 KDataStream stream = dtIn.Encode();
256 GaussianPlumeRecord dtOut(stream);
257 EXPECT_EQ(dtIn, dtOut);
258 EXPECT_EQ(0, stream.GetBufferSize());
261 TEST(DataType_EncodeDecode6, GaussianPuffRecord)
263 GaussianPuffRecord dtIn;
264 KDataStream stream = dtIn.Encode();
265 GaussianPuffRecord dtOut(stream);
266 EXPECT_EQ(dtIn, dtOut);
267 EXPECT_EQ(0, stream.GetBufferSize());
270 TEST(DataType_EncodeDecode6, GED_BasicFixedWingAircraft)
272 GED_BasicFixedWingAircraft dtIn;
273 KDataStream stream = dtIn.Encode();
274 GED_BasicFixedWingAircraft dtOut(stream);
275 EXPECT_EQ(dtIn, dtOut);
276 EXPECT_EQ(0, stream.GetBufferSize());
279 TEST(DataType_EncodeDecode6, GED_BasicGroundCombatSoldier)
281 GED_BasicGroundCombatSoldier dtIn;
282 KDataStream stream = dtIn.Encode();
283 GED_BasicGroundCombatSoldier dtOut(stream);
284 EXPECT_EQ(dtIn, dtOut);
285 EXPECT_EQ(0, stream.GetBufferSize());
288 TEST(DataType_EncodeDecode6, GED_BasicGroundCombatVehicle)
290 GED_BasicGroundCombatVehicle dtIn;
291 KDataStream stream = dtIn.Encode();
292 GED_BasicGroundCombatVehicle dtOut(stream);
293 EXPECT_EQ(dtIn, dtOut);
294 EXPECT_EQ(0, stream.GetBufferSize());
297 TEST(DataType_EncodeDecode6, GED_BasicRotorWingAircraft)
299 GED_BasicRotorWingAircraft dtIn;
300 KDataStream stream = dtIn.Encode();
301 GED_BasicRotorWingAircraft dtOut(stream);
302 EXPECT_EQ(dtIn, dtOut);
303 EXPECT_EQ(0, stream.GetBufferSize());
306 TEST(DataType_EncodeDecode6, GED_EnhancedFixedWingAircraft)
308 GED_EnhancedFixedWingAircraft dtIn;
309 KDataStream stream = dtIn.Encode();
310 GED_EnhancedFixedWingAircraft dtOut(stream);
311 EXPECT_EQ(dtIn, dtOut);
312 EXPECT_EQ(0, stream.GetBufferSize());
315 TEST(DataType_EncodeDecode6, GED_EnhancedGroundCombatSoldier)
317 GED_EnhancedGroundCombatSoldier dtIn;
318 KDataStream stream = dtIn.Encode();
319 GED_EnhancedGroundCombatSoldier dtOut(stream);
320 EXPECT_EQ(dtIn, dtOut);
321 EXPECT_EQ(0, stream.GetBufferSize());
324 TEST(DataType_EncodeDecode6, GED_EnhancedGroundCombatVehicle)
326 GED_EnhancedGroundCombatVehicle dtIn;
327 KDataStream stream = dtIn.Encode();
328 GED_EnhancedGroundCombatVehicle dtOut(stream);
329 EXPECT_EQ(dtIn, dtOut);
330 EXPECT_EQ(0, stream.GetBufferSize());
333 TEST(DataType_EncodeDecode6, GED_EnhancedRotaryWingAircraft)
335 GED_EnhancedRotaryWingAircraft dtIn;
336 KDataStream stream = dtIn.Encode();
337 GED_EnhancedRotaryWingAircraft dtOut(stream);
338 EXPECT_EQ(dtIn, dtOut);
339 EXPECT_EQ(0, stream.GetBufferSize());
342 TEST(DataType_EncodeDecode6, GED_GroundLogisticsVehicle)
344 GED_GroundLogisticsVehicle dtIn;
345 KDataStream stream = dtIn.Encode();
346 GED_GroundLogisticsVehicle dtOut(stream);
347 EXPECT_EQ(dtIn, dtOut);
348 EXPECT_EQ(0, stream.GetBufferSize());
351 TEST(DataType_EncodeDecode6, GridAxisIrregular)
353 GridAxisIrregular dtIn;
354 KDataStream stream = dtIn.Encode();
355 GridAxisIrregular dtOut(stream);
356 EXPECT_EQ(dtIn, dtOut);
357 EXPECT_EQ(0, stream.GetBufferSize());
360 TEST(DataType_EncodeDecode6, GridAxisRegular)
362 GridAxisRegular dtIn;
363 KDataStream stream = dtIn.Encode();
364 GridAxisRegular dtOut(stream);
365 EXPECT_EQ(dtIn, dtOut);
366 EXPECT_EQ(0, stream.GetBufferSize());
369 TEST(DataType_EncodeDecode6, GridDataType0)
371 GridDataType0 dtIn;
372 KDataStream stream = dtIn.Encode();
373 GridDataType0 dtOut(stream);
374 EXPECT_EQ(dtIn, dtOut);
375 EXPECT_EQ(0, stream.GetBufferSize());
378 TEST(DataType_EncodeDecode6, GridDataType1)
380 GridDataType1 dtIn;
381 KDataStream stream = dtIn.Encode();
382 GridDataType1 dtOut(stream);
383 EXPECT_EQ(dtIn, dtOut);
384 EXPECT_EQ(0, stream.GetBufferSize());
387 TEST(DataType_EncodeDecode6, GridDataType2)
389 GridDataType2 dtIn;
390 KDataStream stream = dtIn.Encode();
391 GridDataType2 dtOut(stream);
392 EXPECT_EQ(dtIn, dtOut);
393 EXPECT_EQ(0, stream.GetBufferSize());
396 TEST(DataType_EncodeDecode6, GroupAssignmentRecord)
398 GroupAssignmentRecord dtIn;
399 KDataStream stream = dtIn.Encode();
400 GroupAssignmentRecord dtOut(stream);
401 EXPECT_EQ(dtIn, dtOut);
402 EXPECT_EQ(0, stream.GetBufferSize());
405 TEST(DataType_EncodeDecode6, GroupDestinationRecord)
407 GroupDestinationRecord dtIn;
408 KDataStream stream = dtIn.Encode();
409 GroupDestinationRecord dtOut(stream);
410 EXPECT_EQ(dtIn, dtOut);
411 EXPECT_EQ(0, stream.GetBufferSize());
414 TEST(DataType_EncodeDecode6, IFF_ATC_NAVAIDS_FundamentalParameterData)
416 IFF_ATC_NAVAIDS_FundamentalParameterData dtIn;
417 KDataStream stream = dtIn.Encode();
418 IFF_ATC_NAVAIDS_FundamentalParameterData dtOut(stream);
419 EXPECT_EQ(dtIn, dtOut);
420 EXPECT_EQ(0, stream.GetBufferSize());
423 TEST(DataType_EncodeDecode6, IFF_Layer2)
425 IFF_Layer2 dtIn;
426 KDataStream stream = dtIn.Encode();
427 IFF_Layer2 dtOut(stream);
428 EXPECT_EQ(dtIn, dtOut);
429 EXPECT_EQ(0, stream.GetBufferSize());
432 TEST(DataType_EncodeDecode6, IntercomCommunicationParameters)
434 IntercomCommunicationParameters dtIn;
435 KDataStream stream = dtIn.Encode();
436 IntercomCommunicationParameters dtOut(stream);
437 EXPECT_EQ(dtIn, dtOut);
438 EXPECT_EQ(0, stream.GetBufferSize());
441 TEST(DataType_EncodeDecode6, LayerHeader)
443 LayerHeader dtIn;
444 KDataStream stream = dtIn.Encode();
445 LayerHeader dtOut(stream);
446 EXPECT_EQ(dtIn, dtOut);
447 EXPECT_EQ(0, stream.GetBufferSize());
450 TEST(DataType_EncodeDecode6, LE_DeadReckoningParameter)
452 LE_DeadReckoningParameter dtIn;
453 KDataStream stream = dtIn.Encode();
454 LE_DeadReckoningParameter dtOut(stream);
455 EXPECT_EQ(dtIn, dtOut);
456 EXPECT_EQ(0, stream.GetBufferSize());
459 TEST(DataType_EncodeDecode6, LE_EntityIdentifier)
461 LE_EntityIdentifier dtIn;
462 KDataStream stream = dtIn.Encode();
463 LE_EntityIdentifier dtOut(stream);
464 EXPECT_EQ(dtIn, dtOut);
465 EXPECT_EQ(0, stream.GetBufferSize());
468 TEST(DataType_EncodeDecode6, LE_EulerAngles)
470 LE_EulerAngles dtIn;
471 KDataStream stream = dtIn.Encode();
472 LE_EulerAngles dtOut(stream);
473 EXPECT_EQ(dtIn, dtOut);
474 EXPECT_EQ(0, stream.GetBufferSize());
477 TEST(DataType_EncodeDecode6, LinearObjectAppearance)
479 LinearObjectAppearance dtIn;
480 KDataStream stream = dtIn.Encode();
481 LinearObjectAppearance dtOut(stream);
482 EXPECT_EQ(dtIn, dtOut);
483 EXPECT_EQ(0, stream.GetBufferSize());
486 TEST(DataType_EncodeDecode6, LinearSegmentParameter)
488 LinearSegmentParameter dtIn;
489 KDataStream stream = dtIn.Encode();
490 LinearSegmentParameter dtOut(stream);
491 EXPECT_EQ(dtIn, dtOut);
492 EXPECT_EQ(0, stream.GetBufferSize());
495 TEST(DataType_EncodeDecode6, LineRecord1)
497 LineRecord1 dtIn;
498 KDataStream stream = dtIn.Encode();
499 LineRecord1 dtOut(stream);
500 EXPECT_EQ(dtIn, dtOut);
501 EXPECT_EQ(0, stream.GetBufferSize());
504 TEST(DataType_EncodeDecode6, LineRecord2)
506 LineRecord2 dtIn;
507 KDataStream stream = dtIn.Encode();
508 LineRecord2 dtOut(stream);
509 EXPECT_EQ(dtIn, dtOut);
510 EXPECT_EQ(0, stream.GetBufferSize());
513 TEST(DataType_EncodeDecode6, MinefieldAppearance)
515 MinefieldAppearance dtIn;
516 KDataStream stream = dtIn.Encode();
517 MinefieldAppearance dtOut(stream);
518 EXPECT_EQ(dtIn, dtOut);
519 EXPECT_EQ(0, stream.GetBufferSize());
522 TEST(DataType_EncodeDecode6, MinefieldDataFilter)
524 MinefieldDataFilter dtIn;
525 KDataStream stream = dtIn.Encode();
526 MinefieldDataFilter dtOut(stream);
527 EXPECT_EQ(dtIn, dtOut);
528 EXPECT_EQ(0, stream.GetBufferSize());
531 TEST(DataType_EncodeDecode6, MineFusing)
533 MineFusing dtIn;
534 KDataStream stream = dtIn.Encode();
535 MineFusing dtOut(stream);
536 EXPECT_EQ(dtIn, dtOut);
537 EXPECT_EQ(0, stream.GetBufferSize());
540 TEST(DataType_EncodeDecode6, MinePaintScheme)
542 MinePaintScheme dtIn;
543 KDataStream stream = dtIn.Encode();
544 MinePaintScheme dtOut(stream);
545 EXPECT_EQ(dtIn, dtOut);
546 EXPECT_EQ(0, stream.GetBufferSize());
549 TEST(DataType_EncodeDecode6, NamedLocationIdentifier)
551 NamedLocationIdentifier dtIn;
552 KDataStream stream = dtIn.Encode();
553 NamedLocationIdentifier dtOut(stream);
554 EXPECT_EQ(dtIn, dtOut);
555 EXPECT_EQ(0, stream.GetBufferSize());
558 TEST(DataType_EncodeDecode6, ObjectAppearance)
560 ObjectAppearance dtIn;
561 KDataStream stream = dtIn.Encode();
562 ObjectAppearance dtOut(stream);
563 EXPECT_EQ(dtIn, dtOut);
564 EXPECT_EQ(0, stream.GetBufferSize());
567 TEST(DataType_EncodeDecode6, ObjectType)
569 ObjectType dtIn;
570 KDataStream stream = dtIn.Encode();
571 ObjectType dtOut(stream);
572 EXPECT_EQ(dtIn, dtOut);
573 EXPECT_EQ(0, stream.GetBufferSize());
576 TEST(DataType_EncodeDecode6, OrientationError)
578 OrientationError dtIn;
579 KDataStream stream = dtIn.Encode();
580 OrientationError dtOut(stream);
581 EXPECT_EQ(dtIn, dtOut);
582 EXPECT_EQ(0, stream.GetBufferSize());
585 TEST(DataType_EncodeDecode6, PerimeterPointCoordinate)
587 PerimeterPointCoordinate dtIn;
588 KDataStream stream = dtIn.Encode();
589 PerimeterPointCoordinate dtOut(stream);
590 EXPECT_EQ(dtIn, dtOut);
591 EXPECT_EQ(0, stream.GetBufferSize());
594 TEST(DataType_EncodeDecode6, PointObjectAppearance)
596 PointObjectAppearance dtIn;
597 KDataStream stream = dtIn.Encode();
598 PointObjectAppearance dtOut(stream);
599 EXPECT_EQ(dtIn, dtOut);
600 EXPECT_EQ(0, stream.GetBufferSize());
603 TEST(DataType_EncodeDecode6, PointRecord1)
605 PointRecord1 dtIn;
606 KDataStream stream = dtIn.Encode();
607 PointRecord1 dtOut(stream);
608 EXPECT_EQ(dtIn, dtOut);
609 EXPECT_EQ(0, stream.GetBufferSize());
612 TEST(DataType_EncodeDecode6, PointRecord2)
614 PointRecord2 dtIn;
615 KDataStream stream = dtIn.Encode();
616 PointRecord2 dtOut(stream);
617 EXPECT_EQ(dtIn, dtOut);
618 EXPECT_EQ(0, stream.GetBufferSize());
621 TEST(DataType_EncodeDecode6, PositionError)
623 PositionError dtIn;
624 KDataStream stream = dtIn.Encode();
625 PositionError dtOut(stream);
626 EXPECT_EQ(dtIn, dtOut);
627 EXPECT_EQ(0, stream.GetBufferSize());
630 TEST(DataType_EncodeDecode6, PropulsionSystem)
632 PropulsionSystem dtIn;
633 KDataStream stream = dtIn.Encode();
634 PropulsionSystem dtOut(stream);
635 EXPECT_EQ(dtIn, dtOut);
636 EXPECT_EQ(0, stream.GetBufferSize());
639 TEST(DataType_EncodeDecode6, RecordSet)
641 RecordSet dtIn;
642 KDataStream stream = dtIn.Encode();
643 RecordSet dtOut(stream);
644 EXPECT_EQ(dtIn, dtOut);
645 EXPECT_EQ(0, stream.GetBufferSize());
648 TEST(DataType_EncodeDecode6, RectangularVolumeRecord1)
650 RectangularVolumeRecord1 dtIn;
651 KDataStream stream = dtIn.Encode();
652 RectangularVolumeRecord1 dtOut(stream);
653 EXPECT_EQ(dtIn, dtOut);
654 EXPECT_EQ(0, stream.GetBufferSize());
657 TEST(DataType_EncodeDecode6, RectangularVolumeRecord2)
659 RectangularVolumeRecord2 dtIn;
660 KDataStream stream = dtIn.Encode();
661 RectangularVolumeRecord2 dtOut(stream);
662 EXPECT_EQ(dtIn, dtOut);
663 EXPECT_EQ(0, stream.GetBufferSize());
666 TEST(DataType_EncodeDecode6, RectangularVolumeRecord3)
668 RectangularVolumeRecord3 dtIn;
669 KDataStream stream = dtIn.Encode();
670 RectangularVolumeRecord3 dtOut(stream);
671 EXPECT_EQ(dtIn, dtOut);
672 EXPECT_EQ(0, stream.GetBufferSize());
675 TEST(DataType_EncodeDecode6, RelationshipRecord)
677 RelationshipRecord dtIn;
678 KDataStream stream = dtIn.Encode();
679 RelationshipRecord dtOut(stream);
680 EXPECT_EQ(dtIn, dtOut);
681 EXPECT_EQ(0, stream.GetBufferSize());
684 TEST(DataType_EncodeDecode6, RelativeWorldCoordinates)
686 RelativeWorldCoordinates dtIn;
687 KDataStream stream = dtIn.Encode();
688 RelativeWorldCoordinates dtOut(stream);
689 EXPECT_EQ(dtIn, dtOut);
690 EXPECT_EQ(0, stream.GetBufferSize());
693 TEST(DataType_EncodeDecode6, SecondaryOperationalData)
695 SecondaryOperationalData dtIn;
696 KDataStream stream = dtIn.Encode();
697 SecondaryOperationalData dtOut(stream);
698 EXPECT_EQ(dtIn, dtOut);
699 EXPECT_EQ(0, stream.GetBufferSize());
702 TEST(DataType_EncodeDecode6, Shaft)
704 Shaft dtIn;
705 KDataStream stream = dtIn.Encode();
706 Shaft dtOut(stream);
707 EXPECT_EQ(dtIn, dtOut);
708 EXPECT_EQ(0, stream.GetBufferSize());
711 TEST(DataType_EncodeDecode6, SilentAggregateSystem)
713 SilentAggregateSystem dtIn;
714 KDataStream stream = dtIn.Encode();
715 SilentAggregateSystem dtOut(stream);
716 EXPECT_EQ(dtIn, dtOut);
717 EXPECT_EQ(0, stream.GetBufferSize());
720 TEST(DataType_EncodeDecode6, SilentEntitySystem)
722 SilentEntitySystem dtIn;
723 KDataStream stream = dtIn.Encode();
724 SilentEntitySystem dtOut(stream);
725 EXPECT_EQ(dtIn, dtOut);
726 EXPECT_EQ(0, stream.GetBufferSize());
729 TEST(DataType_EncodeDecode6, SphereRecord1)
731 SphereRecord1 dtIn;
732 KDataStream stream = dtIn.Encode();
733 SphereRecord1 dtOut(stream);
734 EXPECT_EQ(dtIn, dtOut);
735 EXPECT_EQ(0, stream.GetBufferSize());
738 TEST(DataType_EncodeDecode6, SphereRecord2)
740 SphereRecord2 dtIn;
741 KDataStream stream = dtIn.Encode();
742 SphereRecord2 dtOut(stream);
743 EXPECT_EQ(dtIn, dtOut);
744 EXPECT_EQ(0, stream.GetBufferSize());
747 TEST(DataType_EncodeDecode6, SystemIdentifier)
749 SystemIdentifier dtIn;
750 KDataStream stream = dtIn.Encode();
751 SystemIdentifier dtOut(stream);
752 EXPECT_EQ(dtIn, dtOut);
753 EXPECT_EQ(0, stream.GetBufferSize());
756 TEST(DataType_EncodeDecode6, UnderwaterAcousticEmitterBeam)
758 UnderwaterAcousticEmitterBeam dtIn;
759 KDataStream stream = dtIn.Encode();
760 UnderwaterAcousticEmitterBeam dtOut(stream);
761 EXPECT_EQ(dtIn, dtOut);
762 EXPECT_EQ(0, stream.GetBufferSize());
765 TEST(DataType_EncodeDecode6, UnderwaterAcousticEmitterSystem)
767 UnderwaterAcousticEmitterSystem dtIn;
768 KDataStream stream = dtIn.Encode();
769 UnderwaterAcousticEmitterSystem dtOut(stream);
770 EXPECT_EQ(dtIn, dtOut);
771 EXPECT_EQ(0, stream.GetBufferSize());
774 TEST(DataType_EncodeDecode6, UnderwaterAcousticFundamentalParameterData)
776 UnderwaterAcousticFundamentalParameterData dtIn;
777 KDataStream stream = dtIn.Encode();
778 UnderwaterAcousticFundamentalParameterData dtOut(stream);
779 EXPECT_EQ(dtIn, dtOut);
780 EXPECT_EQ(0, stream.GetBufferSize());
783 TEST(DataType_EncodeDecode6, VectoringNozzleSystem)
785 VectoringNozzleSystem dtIn;
786 KDataStream stream = dtIn.Encode();
787 VectoringNozzleSystem dtOut(stream);
788 EXPECT_EQ(dtIn, dtOut);
789 EXPECT_EQ(0, stream.GetBufferSize());
792 #endif