40 template <
typename SegmentRecordType,
typename SegmentRecordNetType,
41 typename CountFunction,
typename SegmentFunction>
43 RTI::ParameterHandleValuePairSet* params, RTI::ParameterHandle paramHandle,
44 CountFunction countFunction, SegmentFunction segmentFunction);
47 template <
typename SegmentRecordType,
typename SegmentRecordNetType,
48 typename CountFunction,
typename SegmentFunction>
51 RTI::ParameterHandleValuePairSet* params,
52 RTI::ParameterHandle paramHandle,
53 CountFunction countFunction,
54 SegmentFunction segmentFunction)
56 int count = (inter.*countFunction)();
57 std::vector<SegmentRecordNetType> netVals(count);
59 for (
int index = 0; index < count; ++index)
61 SegmentRecordType localSegment;
62 (inter.*segmentFunction)(index, localSegment);
63 localSegment.loadNetRecord(netVals[index]);
66 params->add(paramHandle, (
char*)netVals.data(), count *
sizeof(SegmentRecordNetType));
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
#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.
DtEnvironmentObjectTransactionEncoder & operator=(const DtEnvironmentObjectTransactionEncoder &orig)
assignment operator
class DtLinearObjectTransaction
Definition: linearObjectTransaction.h:47
DtLinearObjectTransactionEncoder is the base class for HLA environment object transaction encoders th...
Definition: linearObjectTransactionEncoder.h:22
static void encodeSegmentRecords(const DtLinearObjectTransaction &inter, RTI::ParameterHandleValuePairSet *params, RTI::ParameterHandle paramHandle, CountFunction countFunction, SegmentFunction segmentFunction)
Definition: linearObjectTransactionEncoder.h:49
This file provides a declaration of the class DtEnvironmentObjectTransactionEncoder.
class DtEnvironmentObjectTransactionEncoder:
Definition: environmentObjectTransactionEncoder.h:28