21 #include <vl/exerciseConn.h>
33 class DtSimObjectNetInterface;
34 class DtVrlinkNetworkInterface;
38 template <
typename BaseNetInterface,
typename StateRepository>
58 bool publishObject =
true)
60 , myIsUninitialized(true)
74 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
79 netWithProps->setSendVrfObjectDataRecord(
false);
81 RTI::ObjectClassHandle hdl = this->objectClassHandle();
84 netWithProps->setObjectClassHandle(hdl);
87 this->myObjectManager->exerciseConnection()))
89 netWithProps->setSendVrfObjectDataRecord(
false);
93 DtWarn <<
"Unable to publish VrfExtendedAttributes, using VRF object data messages instead." << std::endl;
98 myIsUninitialized =
false;
104 virtual void onTick()
107 BaseNetInterface::onTick();
115 if (myIsUninitialized)
117 initExtendedProperties();
120 BaseNetInterface::updatePublisher();
125 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
127 if (netWithProps && !netWithProps->shouldSendVrfObjectDataRecord())
131 netWithProps->setUuidString(eid->uuid().uuidString());
135 BaseNetInterface::updateUuid();
const T_Component * getStateComponent(int index=0) const
The current state frame data.
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
Contains Extended DI-Guy Object net types.
virtual bool initExtendedProperties()
Initializer.
Definition: localExtendedPropertiesNetInterface.h:70
Contains the DtSensorFieldOfViewPublisher class declaration.
class DtVrlinkNetworkInterface:
Definition: vrlinkNetworkInterface.h:55
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:336
Extends an existing local net interface class to give it the ability to publish extended properties...
Definition: localExtendedPropertiesNetInterface.h:39
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:48
DtLocalExtendedPropertiesNetInterface(DtStateData *vrfObject, DtVrlinkNetworkInterface *objMgr, bool publishObject=true)
read/writable constructor
Definition: localExtendedPropertiesNetInterface.h:57
#define DT_DLL_vrlinkNetworkInterface
This file is used to determine how to build.
Definition: vrlinkNetworkInterfaceDefines.h:24
Definition: stateData.h:260
virtual ~DtLocalExtendedPropertiesNetInterface()
destructor
Definition: localExtendedPropertiesNetInterface.h:65
Defines the DtPropertyInterface class, the interface for all property classes.
static DtSimObjectNetInterface * creator(DtStateData *vrfObject, DtVrlinkNetworkInterface *objMgr, bool publishObject)
Definition: localExtendedPropertiesNetInterface.h:139
bool myIsUninitialized
Definition: localExtendedPropertiesNetInterface.h:148
virtual void updateUuid()
Definition: localExtendedPropertiesNetInterface.h:123
virtual void updatePublisher()
Calls the base class updatePublisher() and then updates the extended property attributes.
Definition: localExtendedPropertiesNetInterface.h:113