40 template <
typename SegmentRecordType>
43 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
45 RTI::AttributeHandleValuePairSet* attrs, RTI::AttributeHandle attrHandle);
48 template <
typename SegmentRecordType>
49 bool DtLinearObjectEncoder::needSegmentRecords(
57 for (
int count = 0; count < stateRep.
numSegments(); ++count)
59 SegmentRecordType localSegment;
60 stateRep.
segment(count, localSegment);
61 SegmentRecordType remoteSegment;
62 asSeenByRemote.
segment(count, remoteSegment);
63 if (localSegment != remoteSegment)
72 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
74 RTI::AttributeHandleValuePairSet* attrs, RTI::AttributeHandle attrHandle)
77 std::vector<SegmentRecordNetType> netVals(num);
79 for (
int count = 0; count < num; ++count)
81 SegmentRecordType localSegment;
82 stateRep.
segment(count, localSegment);
83 localSegment.loadNetRecord(netVals[count]);
86 attrs->add(attrHandle, (
char*) netVals.data(), num *
sizeof(SegmentRecordNetType));
Contains the DtLinearObjectRepository class declaration.
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:63
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
virtual bool segment(int index, DtLinearSegmentRecord &record) const
Provides encoding logic for the DtLinearObjectStatePdu class.
Definition: linearObjectEncoderDIS.h:20
virtual int numSegments() const
Instances of DtLinearObjectRepository are used to maintain state information needed by linear object ...
Definition: linearObjectRepository.h:50