22 #include <vl/exerciseConn.h>
34 template <
typename BaseNetInterface,
typename StateRepository>
42 , myIsUninitialized(true)
52 bool publishObject =
true)
54 , myIsUninitialized(true)
63 , myIsUninitialized(true)
72 BaseNetInterface::operator=(orig));
81 virtual bool initExtendedProperties()
85 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
89 if (netWithProps && localState)
92 netWithProps->setSendVrfObjectDataRecord(
false);
96 RTI::ObjectClassHandle hdl = this->objectClassHandle();
97 netWithProps->setObjectClassHandle(hdl);
100 this->mySimManager->exerciseConn()))
102 netWithProps->setSendVrfObjectDataRecord(
false);
106 DtWarn <<
"Unable to publish VrfExtendedAttributes, using VRF object data messages instead." << std::endl;
111 myIsUninitialized =
false;
118 virtual void onTick()
120 BaseNetInterface::onTick();
126 virtual void updatePublisher()
128 if (myIsUninitialized)
130 initExtendedProperties();
133 BaseNetInterface::updatePublisher();
136 virtual void updateUuid()
139 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
141 if (localState && netWithProps && !netWithProps->shouldSendVrfObjectDataRecord())
143 netWithProps->setUuid(this->vrfObject()->uuid());
147 BaseNetInterface::updateUuid();
157 parentRegistry, publishObject);