38 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
40 const RTI::AttributeHandleValuePairSet& attrs,
int pairSetIndex);
43 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
45 const RTI::AttributeHandleValuePairSet& attrs,
int pairSetIndex)
47 RTI::ULong length = 0;
48 char* buffer = attributeData(attrs, pairSetIndex, length);
56 if (length %
sizeof(SegmentRecordNetType) != 0)
58 DtWarn(
"Can't decode SegmentRecords : Size %d not a multiple of the size of a parameter (%d).\n",
59 length,
sizeof(SegmentRecordNetType));
65 int numSegs = length /
sizeof(SegmentRecordNetType);
68 for (
int segCount = 0; segCount < numSegs; ++segCount)
70 SegmentRecordNetType* netSegPtr = (SegmentRecordNetType*) buffer;
71 SegmentRecordType rec;
75 buffer +=
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
Provides decoding logic for the DtLinearObjectStatePdu class.
Definition: linearObjectDecoderDIS.h:20
DtOutputStream DtWarn
These DtOutputStream instances are used for all print messaging in VR-Link.
virtual bool setSegment(int index, const DtLinearSegmentRecord &record)
Instances of DtLinearObjectRepository are used to maintain state information needed by linear object ...
Definition: linearObjectRepository.h:50
virtual bool setNumSegments(int newNumber)