VR-Link API Documentation for HLA 1516
 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 MAK Technologies, Inc
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 
24 {
25 public:
26 
29  DtExerciseConn* exConn,
30  DtObjClassDesc* classDesc);
31 
33  virtual ~DtAggregateEntityDecoder();
34 
37 
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);
62  DtDECLARE_AGGREGATE_ATTR_DECODER(EntityIdentifiers);
64  DtDECLARE_AGGREGATE_ATTR_DECODER(ForceIdentifier);
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 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtBaseEntityDecoder are used to decode a base entity state message into a state reposito...
Definition: baseEntityDecoder.h:41
void addMyDecoders()
Add decoding functions for the attributes.
#define DtDECLARE_AGGREGATE_ATTR_DECODER(attrName)
This is used to declare attribute decoding functions which are members of the class.
Definition: baseEntityDecoder.h:28
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
class DtAggregateEntityDecoder:
Definition: aggregateEntityDecoder.h:23
DtHlaStateDecoder is used to provide decoding of a state message into a state repository in an HLA (a...
Definition: hlaStateDecoder.h:34
This file provides a declaration of the class DtBaseEntityDecoder.
static DtHlaStateDecoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtBaseEntityDecoder. Caller is responsible for deletion.
DtBaseEntityDecoder & operator=(const DtBaseEntityDecoder &orig)
assignment operator
A protocol independent representation of an aggregate.
Definition: aggregateStateRepository.h:29

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)