38 template <
typename SegmentRecordType,
typename SegmentRecordNetType,
39 typename CountMutator,
typename SegmentMutator>
41 const RTI::ParameterHandleValuePairSet& params,
int index,
42 CountMutator countMutator, SegmentMutator segmentMutator);
45 template <
typename SegmentRecordType,
typename SegmentRecordNetType,
46 typename CountMutator,
typename SegmentMutator>
49 const RTI::ParameterHandleValuePairSet& params,
51 CountMutator countMutator,
52 SegmentMutator segmentMutator)
54 RTI::ULong length = 0;
59 (inter->*countMutator)(0);
63 if (length %
sizeof(SegmentRecordNetType) != 0)
65 DtWarn(
"Can't decode SegmentRecords : Size %d not a multiple of the size of a parameter (%d).\n",
66 length,
sizeof(SegmentRecordNetType));
68 (inter->*countMutator)(0);
72 int numSegs = length /
sizeof(SegmentRecordNetType);
73 (inter->*countMutator)(numSegs);
75 for (
int segCount = 0; segCount < numSegs; ++segCount)
77 SegmentRecordNetType* netSegPtr = (SegmentRecordNetType*)buffer;
78 SegmentRecordType rec;
81 (inter->*segmentMutator)(segCount, rec);
82 buffer +=
sizeof(SegmentRecordNetType);
DtEnvironmentObjectTransactionDecoder & operator=(const DtEnvironmentObjectTransactionDecoder &orig)
assignment operator
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
class DtEnvironmentObjectTransactionDecoder:
Definition: environmentObjectTransactionDecoder.h:41
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
Instances of DtInterClassDesc are used to represent HLA Object and Interaction classes.
Definition: interClassDesc.h:33
This file provides a declaration of the class DtLinearObjectTransaction.
static char * parameterData(const RTI::ParameterHandleValuePairSet &pvList, int index, RTI::ULong &length)
Returns a pointer to a buffer containing the parameter data.
Definition: interactionDecoder.h:165
class DtLinearObjectTransaction
Definition: linearObjectTransaction.h:47
DtOutputStream DtWarn
These DtOutputStream instances are used for all print messaging in VR-Link.
static void decodeSegmentRecords(DtLinearObjectTransaction *inter, const RTI::ParameterHandleValuePairSet ¶ms, int index, CountMutator countMutator, SegmentMutator segmentMutator)
Definition: linearObjectTransactionDecoder.h:47
This file provides a declaration of the class DtEnvironmentObjectTransactionDecoder.
DtLinearObjectTransactionDecoder is the base class for HLA environment object transaction decoders th...
Definition: linearObjectTransactionDecoder.h:20