VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
detonationEncoder.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 detonationEncoder_H_
8 #define detonationEncoder_H_
9 
10 #if DtHLA
11 
12 #include "interactionEncoder.h"
13 #include <vlpi/netStructs.h>
14 
18 
20 
21 #define DtDECLARE_DETONATION_PARAM_ENCODER(paramName) \
22  DtDECLARE_PARAM_ENCODER(DtDetonationInteraction, paramName)
23 
24 #define DtDEFINE_SIMPLE_DETONATION_PARAM_ENCODER(paramName, netType, inspector) \
25  DtDEFINE_SIMPLE_PARAM_ENCODER(DtDetonationEncoder, DtDetonationInteraction, \
26  paramName, netType, \
27  inspector)
28 
33 
35 {
36 public:
37 
39  DtInterClassDesc* classDesc);
40 
42  virtual ~DtDetonationEncoder();
43 
46 
49 
50 protected:
51 
52  DtDECLARE_DETONATION_PARAM_ENCODER(ArticulatedPartData);
53  DtDECLARE_DETONATION_PARAM_ENCODER(DetonationLocation);
54  DtDECLARE_DETONATION_PARAM_ENCODER(DetonationResultCode);
55  DtDECLARE_DETONATION_PARAM_ENCODER(EventIdentifier);
56  DtDECLARE_DETONATION_PARAM_ENCODER(FiringObjectIdentifier);
57  DtDECLARE_DETONATION_PARAM_ENCODER(FinalVelocityVector);
59  DtDECLARE_DETONATION_PARAM_ENCODER(MunitionObjectIdentifier);
63  DtDECLARE_DETONATION_PARAM_ENCODER(RelativeDetonationLocation);
64  DtDECLARE_DETONATION_PARAM_ENCODER(TargetObjectIdentifier);
66 
68  DtDECLARE_DETONATION_PARAM_ENCODER(DetonationResult);
70  DtDECLARE_DETONATION_PARAM_ENCODER(FiringObjectID);
71  DtDECLARE_DETONATION_PARAM_ENCODER(MunitionObjectID);
72  DtDECLARE_DETONATION_PARAM_ENCODER(TargetObjectID);
73  DtDECLARE_DETONATION_PARAM_ENCODER(ArticulatedPartsArray);
74 
76  static void encodeArticulatedParametersArrayPost1_0(DtDetonationInteraction* inter,
78  RTI::ParameterHandle paramHandle);
79 
81  static void convertToRPR1_0(
82  DtNetArtParamRecord* netParams,
83  DtNetArtParamRecordRPR1* netParamsRPR1,
84  int numRecords);
85 
86 };
87 
88 #endif
89 #endif
90 
91 
92 

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)