40 template <
typename SegmentRecordType>
43 template <
typename SegmentRecordType,
typename SegmentRecordNetType>
45 RTI::AttributeHandleValuePairSet* attrs, RTI::AttributeHandle attrHandle);
48 template <
typename SegmentRecordType>
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: exerciseConnHLA.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
static void encodeSegmentRecords(const DtLinearObjectRepository &stateRep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
Definition: linearObjectEncoderHLA.h:73
class DtEnvironmentObjectEncoder:
Definition: environmentObjectEncoder.h:36
static bool needSegmentRecords(const DtLinearObjectRepository &stateRep, const DtLinearObjectRepository &asSeenByRemote)
Definition: linearObjectEncoderHLA.h:49
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc13.h:41
This file provides a declaration of the class DtEnvironmentObjectEncoder.
virtual bool segment(int index, DtLinearSegmentRecord &record) const
DtLinearObjectEncoder is the base class for HLA environment object state encoders that encode linear ...
Definition: linearObjectEncoderHLA.h:22
virtual int numSegments() const
Instances of DtLinearObjectRepository are used to maintain state information needed by linear object ...
Definition: linearObjectRepository.h:50
DtEnvironmentObjectEncoder & operator=(const DtEnvironmentObjectEncoder &orig)
assignment operator