13 #include <vlutil/vlString.h>
15 #include <vl/objClassDesc.h>
16 #include <vl/hlaStateEncoder.h>
19 namespace makVrfVrlinkExtToolkit
21 template <
typename StateRepType>
30 RTI::AttributeHandleValuePairSet* attrs,
31 RTI::AttributeHandle attrHandle)
33 const StateRepType* extSR =
dynamic_cast<const StateRepType*
>(&rep);
40 unsigned srLength = 0;
41 const char* srValue = extSR->getAttributeByHandle(attrHandle, srLength);
42 attrs->add(attrHandle, (
char*)srValue, srLength);
49 RTI::AttributeHandle attrHandle)
51 const StateRepType* extSR =
dynamic_cast<const StateRepType*
>(&stateRep);
52 const StateRepType* extASBR =
dynamic_cast<const StateRepType*
>(&asSeenByRemote);
54 if (!extSR || !extASBR)
59 unsigned srLength = 0;
60 unsigned asbrLength = 0;
61 const char* srValue = extSR->getAttributeByHandle(attrHandle, srLength);
62 const char* asbrValue = extASBR->getAttributeByHandle(attrHandle, asbrLength);
64 return (srLength != asbrLength ||
65 memcmp(srValue, asbrValue, srLength) != 0);
Contains the DtSensorFieldOfViewPublisher class declaration.