38 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
43 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
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: exerciseConnHLA.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
class DtEnvironmentObjectDecoder:
Definition: environmentObjectDecoder.h:31
DtLinearObjectDecoder is the base class for HLA environment object state decoders that decode linear ...
Definition: linearObjectDecoderHLA.h:20
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
This file provides a declaration of the class DtEnvironmentObjectDecoder.
DtOutputStream DtWarn
These DtOutputStream instances are used for all print messaging in VR-Link.
static void decodeSegmentRecords(DtLinearObjectRepository *stateRep, const RTI::AttributeHandleValuePairSet &attrs, int pairSetIndex)
Definition: linearObjectDecoderHLA.h:44
DtEnvironmentObjectDecoder & operator=(const DtEnvironmentObjectDecoder &orig)
assignment operator
static char * attributeData(const RTI::AttributeHandleValuePairSet &attrs, int index, RTI::ULong &length)
Returns a pointer to the attribute data.
Definition: hlaStateDecoder.h:190
virtual bool setSegment(int index, const DtLinearSegmentRecord &record)
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:237
unsigned long ULong
These typedefs are provided for source compatibility.
Definition: rtiCompatibility.h:274
Instances of DtLinearObjectRepository are used to maintain state information needed by linear object ...
Definition: linearObjectRepository.h:50
virtual bool setNumSegments(int newNumber)