19 #include "vrfExtObjects/genericAttributeStateRepositoryHLA.h"
26 template <
typename BaseNetInterface,
typename BaseStateRepository>
47 bool publishObject =
true)
69 BaseNetInterface::operator=(orig));
77 virtual void updatePublisher()
79 BaseNetInterface::updatePublisher();
80 encodePropertyAttributes();
84 virtual bool encodePropertyAttributes()
94 myLastEncodeTime = myClock.absRealTime();
107 std::vector<DtReaderWriterRegistryData *>::const_iterator iter =
109 std::vector<DtReaderWriterRegistryData *>::const_iterator endIter =
111 for(; iter != endIter; ++iter)
113 if ((*iter)->readerWriter()->wasUpdatedSince(myLastEncodeTime) &&
114 netWithProps->publishesAttribute((*iter)->keyword().c_str()))
124 myPropertyBuffer.resize(size);
125 if(myPropertyBuffer.size())
127 pFace->
encode(&myPropertyBuffer[0]);
128 netWithProps->setAttributeByName(
129 (*iter)->keyword().c_str(), &myPropertyBuffer[0], myPropertyBuffer.size());
144 parentRegistry, publishObject);