VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregateEntityDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
8 #ifndef aggregateEntityDecoder_H_
9 #define aggregateEntityDecoder_H_
10 
11 #if DtHLA
12 
13 #include "baseEntityDecoder.h"
14 
16 
22 
23 class DT_DLL_VL DtAggregateEntityDecoder : public DtBaseEntityDecoder
24 {
25 public:
26 
28  DtAggregateEntityDecoder(
29  DtExerciseConn* exConn,
30  DtObjClassDesc* classDesc);
31 
33  virtual ~DtAggregateEntityDecoder();
34 
36  DtAggregateEntityDecoder(const DtAggregateEntityDecoder& orig);
37 
39  DtAggregateEntityDecoder& operator=(const DtAggregateEntityDecoder& orig);
40 
41 public:
42 
45  static DtHlaStateDecoder* create(
46  DtExerciseConn* exConn,
47  DtObjClassDesc* classDesc);
48 
49 protected:
50 
54  void addMyDecoders();
55 
56 protected:
57 
59  DtDECLARE_AGGREGATE_ATTR_DECODER(AggregateMarking);
60  DtDECLARE_AGGREGATE_ATTR_DECODER(AggregateState);
61  DtDECLARE_AGGREGATE_ATTR_DECODER(Dimensions);
62  DtDECLARE_AGGREGATE_ATTR_DECODER(EntityIdentifiers);
63  DtDECLARE_AGGREGATE_ATTR_DECODER(EntityIDs);
64  DtDECLARE_AGGREGATE_ATTR_DECODER(ForceIdentifier);
65  DtDECLARE_AGGREGATE_ATTR_DECODER(ForceID);
66  DtDECLARE_AGGREGATE_ATTR_DECODER(Formation);
67  DtDECLARE_AGGREGATE_ATTR_DECODER(NumberOfSilentEntities);
68  DtDECLARE_AGGREGATE_ATTR_DECODER(NumberOfVariableDatums);
69  DtDECLARE_AGGREGATE_ATTR_DECODER(NumberOfEntities);
70  DtDECLARE_AGGREGATE_ATTR_DECODER(SilentAggregates);
71  DtDECLARE_AGGREGATE_ATTR_DECODER(SilentEntities);
72  DtDECLARE_AGGREGATE_ATTR_DECODER(SilentEntitiesRPR_20beta);
73  DtDECLARE_AGGREGATE_ATTR_DECODER(SilentEntitiesRPR_20);
74  DtDECLARE_AGGREGATE_ATTR_DECODER(SubAggregateIdentifiers);
75  DtDECLARE_AGGREGATE_ATTR_DECODER(SubAggregateIDs);
76  DtDECLARE_AGGREGATE_ATTR_DECODER(VariableDatums);
77 
78  // for all rpr2 not just 2.0
79  DtDECLARE_AGGREGATE_ATTR_DECODER(VariableDatums_RPR2);
80 
82  DtDECLARE_AGGREGATE_ATTR_DECODER(EntityIdentifiers_RPR20);
83  DtDECLARE_AGGREGATE_ATTR_DECODER(SubAggregateIdentifiers_RPR20);
84 };
85 
91 #define DtDEFINE_SIMPLE_AGGREGATE_ATTR_DECODER_WITH_CAST_SET( \
92  attrName, netType, castExpr) \
93  DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST_SET( \
94  DtAggregateEntityDecoder, DtAggregateStateRepository, \
95  attrName, netType, castExpr)
96 
97 #define DtDEFINE_SIMPLE_AGGREGATE_ATTR_DECODER_SET( \
98  attrName, netType) \
99  DtDEFINE_SIMPLE_ATTR_DECODER_SET( \
100  DtAggregateEntityDecoder, DtAggregateStateRepository, \
101  attrName, netType)
102 
103 #endif
104 #endif
105 

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)