VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
detonationDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef detonationDecoder_H_
8 #define detonationDecoder_H_
9 
10 #if DtHLA
11 
12 #include "interactionDecoder.h"
13 
14 
15 
17 #include <vlpi/netStructs.h>
21 
23 
26 
27 #define DtDECLARE_DETONATION_PARAM_DECODER(paramName) \
28  DtDECLARE_PARAM_DECODER(DtDetonationInteraction, paramName)
29 
30 #define DtDEFINE_SIMPLE_DETONATION_PARAM_DECODER( \
31  paramName, netType, mutator) \
32  DtDEFINE_SIMPLE_PARAM_DECODER( \
33  DtDetonationDecoder, DtDetonationInteraction, \
34  paramName, netType, mutator)
35 
36 #define DtDEFINE_SIMPLE_DETONATION_PARAM_DECODER_WITH_CAST( \
37  paramName, netType, mutator, castExpr) \
38  DtDEFINE_SIMPLE_PARAM_DECODER_WITH_CAST( \
39  DtDetonationDecoder, DtDetonationInteraction, \
40  paramName, netType, mutator, castExpr)
41 
46 
48 {
49 public:
50 
53  DtInterClassDesc* classDesc);
54 
56  virtual ~DtDetonationDecoder();
57 
60 
63 
64 protected:
65 
67 
68  DtDECLARE_DETONATION_PARAM_DECODER(ArticulatedPartData);
69  DtDECLARE_DETONATION_PARAM_DECODER(DetonationLocation);
70  DtDECLARE_DETONATION_PARAM_DECODER(DetonationResultCode);
71  DtDECLARE_DETONATION_PARAM_DECODER(EventIdentifier);
72  DtDECLARE_DETONATION_PARAM_DECODER(FiringObjectIdentifier);
73  DtDECLARE_DETONATION_PARAM_DECODER(FinalVelocityVector);
75  DtDECLARE_DETONATION_PARAM_DECODER(MunitionObjectIdentifier);
79  DtDECLARE_DETONATION_PARAM_DECODER(RelativeDetonationLocation);
80  DtDECLARE_DETONATION_PARAM_DECODER(TargetObjectIdentifier);
82 
84  DtDECLARE_DETONATION_PARAM_DECODER(DetonationResult);
86  DtDECLARE_DETONATION_PARAM_DECODER(FiringObjectID);
87  DtDECLARE_DETONATION_PARAM_DECODER(MunitionObjectID);
88  DtDECLARE_DETONATION_PARAM_DECODER(TargetObjectID);
89  DtDECLARE_DETONATION_PARAM_DECODER(ArticulatedPartsArray);
90 
92  static void decodeArticulatedParametersArrayPost1_0(
94  const RTI::ParameterHandleValuePairSet& params,
95  int pairSetIndex);
96 
98  static void convertFromRPR1_0(
99  DtNetArtParamRecord* netParams,
100  DtNetArtParamRecordRPR1* netParamsRPR1,
101  int numRecords);
102 
104  static void decodeAttParts(int numParams,
105  DtNetArtParamRecord* netParams, DtArticulatedPartCollection* artList);
106 };
107 
108 #endif
109 #endif
110 

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)