VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
l16RadioSignalDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 * ** Copyright (c) 2011 VT MAK
3 * ** All rights reserved.
4 * *********************************************************************/
5 /*********************************************************************
6 * ** $RCSfile: hL16RadSigDec.h,v $ $Revision: 1.1 $ $State: Exp $
7 * *********************************************************************/
8 
9 #ifdef DtHLA
10 
11 #ifndef L16RadioSignalDec_H_
12 #define L16RadioSignalDec_H_
13 
16 
17 class DtJtidsMessageRadioSignalInteraction;
18 struct DtJtidsHeaderStruct;
19 
22 
23 #define DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(paramName) \
24  DtDECLARE_PARAM_DECODER(DtL16RadioSignalInteraction, paramName)
25 
26 #define DtDEFINE_SIMPLE_LINK16_RADIO_SIGNAL_PARAM_DECODER(paramName, \
27  netType, mutator) \
28  DtDEFINE_SIMPLE_PARAM_DECODER(DtL16RadioSignalDecoder, \
29  DtL16RadioSignalInteraction, paramName, netType, mutator)
30 
31 #define DtDEFINE_SIMPLE_LINK16_RADIO_SIGNAL_PARAM_DECODER_WITH_CAST( \
32  paramName, netType, mutator, castExpr) \
33  DtDEFINE_SIMPLE_PARAM_DECODER_WITH_CAST( \
34  DtL16RadioSignalDecoder, DtL16RadioSignalInteraction, \
35  paramName, netType, mutator, castExpr)
36 
37 class DT_DLL_VL DtL16RadioSignalDecoder : public DtRawBinaryRadioSignalDecoder
38 {
39 public:
40 
42  DtL16RadioSignalDecoder(DtExerciseConn* exConn,
43  DtInterClassDesc* classDesc);
44 
46  virtual ~DtL16RadioSignalDecoder();
47 
49  DtL16RadioSignalDecoder(const DtL16RadioSignalDecoder& orig);
50 
52  DtL16RadioSignalDecoder& operator=(const DtL16RadioSignalDecoder& orig);
53 
54 protected:
55 
56  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(NPGNumber);
57  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(NetNumber);
58  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(MSEC_CVLL);
59  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(TSEC_CVLL);
60  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(TimeSlotID);
61  DtDECLARE_LINK16_RADIO_SIGNAL_PARAM_DECODER(PerceivedTransmitTime);
62 
63  // The JTIDS header is used by several subclasses.
64  // Put decode of this data here so that it can be shared.
65  // Return size of data
66  static int decodeJTIDSheaderStruct(DtJtidsHeaderStruct& hdrStruct,
67  const RTI::ParameterHandleValuePairSet& params, int index);
68 
69  // The data buffer is used by several subclasses.
70  // Put decode of this data here so that it can be shared.
71  // Return size of data
72  static int decodeDataBuffer(std::vector<DtU8>& data,
73  const RTI::ParameterHandleValuePairSet& params, int index);
74 };
75 
76 #endif
77 #endif

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)