VR-Link API Documentation for DIS
 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 MAK Technologies, Inc
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 
47 class DT_DLL_VL DtDetonationDecoder : public DtInteractionDecoder
48 {
49 public:
50 
52  DtDetonationDecoder(DtExerciseConn* exConn,
53  DtInterClassDesc* classDesc);
54 
56  virtual ~DtDetonationDecoder();
57 
59  DtDetonationDecoder(const DtDetonationDecoder& orig);
60 
62  DtDetonationDecoder& operator=(const DtDetonationDecoder& orig);
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);
74  DtDECLARE_DETONATION_PARAM_DECODER(FuseType);
75  DtDECLARE_DETONATION_PARAM_DECODER(MunitionObjectIdentifier);
76  DtDECLARE_DETONATION_PARAM_DECODER(MunitionType);
77  DtDECLARE_DETONATION_PARAM_DECODER(QuantityFired);
78  DtDECLARE_DETONATION_PARAM_DECODER(RateOfFire);
79  DtDECLARE_DETONATION_PARAM_DECODER(RelativeDetonationLocation);
80  DtDECLARE_DETONATION_PARAM_DECODER(TargetObjectIdentifier);
81  DtDECLARE_DETONATION_PARAM_DECODER(WarheadType);
82 
84  DtDECLARE_DETONATION_PARAM_DECODER(DetonationResult);
85  DtDECLARE_DETONATION_PARAM_DECODER(EventID);
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 
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtDetonationPdu is used to represent the impact or detonation of a munition.
Definition: detonationPdu.h:42
This file contains the declaration of DtInteractionDecoder.
This file provides a declaration of the class DtArticulatedPartCollection.
A DtArticulatedPartCollection is a collection of articulated parts typically of an entity...
Definition: articulatedPartCollection.h:29
Definition: netStructs.h:467
Definition: netStructs.h:478

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)