11 #include <vlutil/vlString.h>
13 #include <vl/objClassDesc.h>
14 #include <vl/hlaStateDecoder.h>
16 namespace makVrfVrlinkExtToolkit
18 template <
typename StateRepType>
27 const RTI::AttributeHandleValuePairSet& attrs,
unsigned long pairSetIndex)
29 StateRepType* extSR =
static_cast<StateRepType*
>(&rep);
33 std::vector<char> buffer;
36 RTI::ULong length = attrs.getValueLength(pairSetIndex);
39 buffer.resize(length);
41 attrs.getValue(pairSetIndex, bufPtr, length);
42 extSR->setAttributeByHandle(attrs.getHandle(pairSetIndex), bufPtr, length);