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);
83 this->myObjectManager->exerciseConnection()))
85 netWithProps->setSendVrfObjectDataRecord(
false);
89 DtWarn <<
"Unable to publish VrfExtendedAttributes, using VRF object data messages instead." << std::endl;
94 myIsUninitialized =
false;
100 virtual void onTick()
103 BaseNetInterface::onTick();
111 if (myIsUninitialized)
113 initExtendedProperties();
116 BaseNetInterface::updatePublisher();
121 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
123 if (netWithProps && !netWithProps->shouldSendVrfObjectDataRecord())
127 netWithProps->setUniqueId(eid->uuid().vrlUuid());
131 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:72
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
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:50
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:301
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:135
bool myIsUninitialized
Definition: localExtendedPropertiesNetInterface.h:144
virtual void updateUuid()
Definition: localExtendedPropertiesNetInterface.h:119
virtual void updatePublisher()
Calls the base class updatePublisher() and then updates the extended property attributes.
Definition: localExtendedPropertiesNetInterface.h:109