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));
85 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
89 if (netWithProps && localState)
92 netWithProps->setSendVrfObjectDataRecord(
false);
94 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;
117 virtual void onTick()
120 BaseNetInterface::onTick();
128 if (myIsUninitialized)
130 initExtendedProperties();
133 BaseNetInterface::updatePublisher();
139 StateRepository* netWithProps =
dynamic_cast<StateRepository*
>(this->myNetworkState);
141 if (localState && netWithProps && !netWithProps->shouldSendVrfObjectDataRecord())
143 netWithProps->setUuidString(this->vrfObject()->uuid().uuidString());
147 BaseNetInterface::updateUuid();
157 parentRegistry, publishObject);
Implements the DtLocalExtendedPropertiesNetInterface class template.
Definition: localExtendedPropertiesNetInterface.h:35
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtLocalExtendedPropertiesNetInterface(const DtLocalExtendedPropertiesNetInterface< BaseNetInterface, StateRepository > &orig, DtReaderWriterRegistry *parentRegistry=0)
copy constructor
Definition: localExtendedPropertiesNetInterface.h:59
Contains Extended DI-Guy Object net types.
virtual bool initExtendedProperties()
Initializer.
Definition: localExtendedPropertiesNetInterface.h:81
Definition: readerWriterRegistry.h:39
Contains the DtSensorFieldOfViewPublisher class declaration.
Description: This repository holds all information that is common to all the forms of all entity/aggr...
Definition: vrfObjectStateRepository.h:87
virtual ~DtLocalExtendedPropertiesNetInterface()
destructor
Definition: localExtendedPropertiesNetInterface.h:76
bool myIsUninitialized
Definition: localExtendedPropertiesNetInterface.h:163
const DtLocalExtendedPropertiesNetInterface & operator=(const DtLocalExtendedPropertiesNetInterface< BaseNetInterface, StateRepository > &orig)
assignment operator
Definition: localExtendedPropertiesNetInterface.h:68
DtLocalExtendedPropertiesNetInterface(const DtString &name, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry=0, bool publishObject=true)
read/writable constructor
Definition: localExtendedPropertiesNetInterface.h:49
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void updatePublisher()
Calls the base class updatePublisher() and then updates the extended property attributes.
Definition: localExtendedPropertiesNetInterface.h:126
Class Description: DtSimObjectNetInterface.
Definition: simObjectNetInterface.h:37
Defines the DtPropertyInterface class, the interface for all property classes.
virtual void updateUuid()
Definition: localExtendedPropertiesNetInterface.h:136
static DtSimObjectNetInterface * creator(const DtString &name, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry, bool publishObject)
Definition: localExtendedPropertiesNetInterface.h:151
DtLocalExtendedPropertiesNetInterface()
default constructor
Definition: localExtendedPropertiesNetInterface.h:40