30 typedef void (*PropertyDecoder) (
const char* buffer,
unsigned size,
int version,
void* usr);
31 typedef void (*PropertyEncoder) (std::vector<char>& buffer,
void* usr);
65 virtual void initialize();
70 virtual bool isInitialized()
const;
83 if ( myStateProperties )
85 return *myStateProperties;
93 if ( myParameterProperties )
95 return *myParameterProperties;
103 virtual bool sensorsKilled()
const;
104 virtual void setSensorsKilled(
bool killed );
109 virtual DtSimulationAddress simEngineAddress()
const;
110 virtual void setSimEngineAddress(DtSimulationAddress addr);
114 void mapPropertiesToRecordTypes(
const DtRwProperties* properties,
116 std::map<unsigned,DtString>& recTypesToAttrNames );
124 virtual bool updatePropertiesFromAttributes(
bool updatesOnly =
true );
128 virtual void updateAttributesFromProperties();
135 virtual void addPropertyDecoder(
const DtString& propName, PropertyDecoder decoder,
void* usr,
136 unsigned disRecordType = 0);
143 virtual void addPropertyEncoder(
const DtString& propName, PropertyEncoder encoder,
void* usr,
144 unsigned disRecordType = 0);
152 virtual void addVrfObjectDataDecoder(
const DtString& propName, PropertyDecoder decoder,
void* usr,
153 unsigned disRecordType = 0);
159 virtual void addVrfObjectDataEncoder(
const DtString& propName, PropertyEncoder encoder,
void* usr,
160 unsigned disRecordType = 0);
163 virtual void removePropertyEncodersAndDecoders();
169 virtual bool createVrfObjectDataMessage()
override;
173 virtual void giveOwernshipOfProperties();
185 virtual void addPropertyUpdatedCallback(
187 virtual void removePropertyUpdatedCallback(
195 virtual void initializeVrfObjectDataProperties();
206 : propertyName(pn), decoder(d), usr(u) {};
217 : propertyName(pn), encoder(e), usr(u) {};
virtual DtTime lastPropertyDecodeTime() const
Last time properties were decoded.
Definition: extEntityStateRepository.h:179
DtRangeItems myRangeItemsCache
Definition: extEntityStateRepository.h:248
void * usr
Definition: extEntityStateRepository.h:221
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtTime myLastEncodeTime
Definition: extEntityStateRepository.h:236
bool myReceivedVrfPropertyVersion
Definition: extEntityStateRepository.h:242
void(* DtCallbackFunctionType)(void *)
The function signature of the callback function.
Definition: noArgumentCallbackList.h:155
bool mySensorsKilled
Definition: extEntityStateRepository.h:239
void * usr
Definition: extEntityStateRepository.h:210
voidpf void uLong size
Definition: ioapi.h:39
DtClock myClock
Definition: extEntityStateRepository.h:235
static const DtRwProperties & emptyProperties()
Definition: readerWriter.h:85
virtual const DtRwProperties & parameterProperties() const
Definition: extEntityStateRepository.h:91
Definition: extEntityStateRepository.h:202
Contains the DtSensorFieldOfViewPublisher class declaration.
DtSimulationAddress mySimEngineAddress
Definition: extEntityStateRepository.h:244
DtRwProperties * myParameterProperties
Definition: extEntityStateRepository.h:225
PropertyEncoder encoder
Definition: extEntityStateRepository.h:220
std::list< PropertyEncoderInfo > myAdditionalEncoders
Definition: extEntityStateRepository.h:232
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
Definition: extEntityStateRepository.h:213
PropertyEncoderInfo()
Definition: extEntityStateRepository.h:215
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList.
Definition: noArgumentCallbackList.h:151
std::vector< char > myPropertyBuffer
Definition: extEntityStateRepository.h:234
PropertyDecoder decoder
Definition: extEntityStateRepository.h:209
DtNoArgumentCallbackList myPropertyUpdatedCallbacks
Definition: extEntityStateRepository.h:250
PropertyEncoderInfo(const DtString &pn, PropertyEncoder e, void *u)
Definition: extEntityStateRepository.h:216
Definition: rangeItem.h:206
int myPropertyVersion
Definition: extEntityStateRepository.h:246
std::list< PropertyDecoderInfo > myAdditionalDecoders
Definition: extEntityStateRepository.h:231
bool myIsInitialized
Definition: extEntityStateRepository.h:228
DtRwProperties * myStateProperties
Definition: extEntityStateRepository.h:224
PropertyDecoderInfo()
Definition: extEntityStateRepository.h:204
bool myReceivedVrfObjectDataVersion
Definition: extEntityStateRepository.h:241
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
std::list< PropertyDecoderInfo > myVrfObjectDataDecoders
Definition: extEntityStateRepository.h:230
virtual DtTime lastPropertyEncodeTime() const
Last time properties were encoded.
Definition: extEntityStateRepository.h:176
DtTime myLastDecodeTime
Definition: extEntityStateRepository.h:237
virtual const DtRwProperties & stateProperties() const
Definition: extEntityStateRepository.h:81
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
bool myOwnsProperties
Definition: extEntityStateRepository.h:226
PropertyDecoderInfo(const DtString &pn, PropertyDecoder d, void *u)
Definition: extEntityStateRepository.h:205