![]() |
VR-Link API Documentation for HLA 1.3
|
DtStateRepository is an abstract base class for maintaining state for an object. More...
Inheritance diagram for DtStateRepository:
Collaboration diagram for DtStateRepository:Public Types | |
| typedef std::map< DtString, DtStateRepositoryExtension * > | DtStateRepositoryExtensionMap |
Public Member Functions | |
| DtStateRepository () | |
| default constructor More... | |
| DtStateRepository (const DtStateRepository &orig) | |
| copy constructor More... | |
| virtual | ~DtStateRepository () |
| destructor More... | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator More... | |
| virtual DtStateRepository * | clone (bool copy=false) const |
| Return a copy/empty object of the same type as this. More... | |
| virtual void | printData () const |
| Print State Data to the DtInfo Stream. More... | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Prints the State Data to the stream specified. More... | |
| virtual void | setGlobalId (const DtString &id) |
| Get/Set global identifier, or name. More... | |
| virtual const DtString & | globalId () const |
| virtual void | setLocalId (const DtObjectId &id) |
| Get/Set local identifier, or handle. More... | |
| virtual const DtObjectId & | localId () const |
| virtual bool | publishesAttribute (const RTI::AttributeHandle &val) const |
| Returns true if the attribute is published. More... | |
| virtual void | setAttributeByHandle (const RTI::AttributeHandle &attrHdl, const char *attrValue, unsigned size) |
| Set the attribute with the given handle. More... | |
| virtual const char * | getAttributeByHandle (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle. More... | |
| virtual void | setAttributeByName (const DtString &attrName, const char *attrValue, unsigned size, DtHlaObject *hlaObj) |
| Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject. More... | |
| virtual const char * | getAttributeByName (const DtString &attrName, unsigned &size, DtHlaObject *hlaObj) const |
| Get a pointer to attribute value for the attribute with the given name. More... | |
| virtual const char * | getAttributeByHandleIfUpdated (const RTI::AttributeHandle &attrHdl, unsigned &size) const |
| Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it. More... | |
Public Attributes | |
| DtString | myGlobalId |
| DtObjectId | myLocalId |
| std::map< RTI::AttributeHandle, DtGenericAttributeInfo * > | myAttributesByHandle |
| Attributes by handle. More... | |
| DtStateRepositoryExtensionMap | myStateRepositoryExtensionMap |
Static Public Attributes | |
| static std::map< DtString, DtSrExtCreatorFnc > | theStateRepositoryExtensionCreatorMap |
| virtual DtStateRepositoryExtension * | stateRepositoryExtension (DtString srExtName) const |
| Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More... | |
| virtual std::vector< DtString > | stateRepositoryExtensionNames () const |
| Returns a set of the registered state repository extension names. More... | |
| virtual void | setStateRepositoryExtensions (std::map< DtString, DtStateRepositoryExtension * > extensions) |
| Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More... | |
| virtual const std::map < DtString, DtStateRepositoryExtension * > | stateRepositoryExtensions () const |
| Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found. More... | |
| static bool | addStateRepositoryExtension (DtString srExtName, DtSrExtCreatorFnc fnc) |
| The following functions are for extending state repositories through State Repository Extension classes. More... | |
DtStateRepository is an abstract base class for maintaining state for an object.
Instances of DtStateRepository subclasses are used to store state for specific object types, such as vehicles or lifeforms.
| typedef std::map<DtString, DtStateRepositoryExtension*> DtStateRepository::DtStateRepositoryExtensionMap |
| DtStateRepository::DtStateRepository | ( | ) |
default constructor
| DtStateRepository::DtStateRepository | ( | const DtStateRepository & | orig | ) |
copy constructor
|
virtual |
destructor
|
static |
The following functions are for extending state repositories through State Repository Extension classes.
Adds the State Repository Creator function to the creator function list return value indicates whether the add was successful or not
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented in DtLinearObjectRepository, DtUnderwaterAcousticsStateRepository, DtFederateStateRepository, DtEmitterBeamRepository, DtEntityStateRepository, DtIffStateRepository, DtVRLinkStateStateRepository, DtActiveSonarStateRepository, DtBaseEntityStateRepository, DtPointObjectRepository, DtEmitterSystemRepository, DtAggregateStateRepository, DtArealObjectRepository, DtWeatherStateRepository, DtDIGuyObjectStateRepository, DtIFFDataStateRepository, DtRadioTransmitterRepository, DtSubsurfaceLayerStateRepository, DtWaterSurfaceStateRepository, DtEnvironmentProcessRepository, DtLandSurfaceStateRepository, DtTroposphereLayerStateRepository, DtEnvironmentConditionStateRepository, DtMode5StateRepository, DtServiceStateRepository, DtWindCorridorStateRepository, DtAerodromeStateRepository, DtMode1StateRepository, DtMode2StateRepository, DtMode3AStateRepository, DtMode4StateRepository, DtModeSStateRepository, DtRRBStateRepository, DtSovietStateRepository, DtTCASDataStateRepository, DtMetocRootStateRepository, DtTurbulenceLayerStateRepository, DtEnvironmentObjectRepository, DtMode3CStateRepository, DtActiveSonarBeamRepository, DtTimeAndDateStateRepository, DtPropulsionNoiseStateRepository, DtAdditionalPassiveActivitiesRepository, DtEmbeddedSystemRepository, DtGriddedDataRepository, DtDesignatorRepository, DtUnderwaterAcousticsEmissionRepository, DtRadioReceiverRepository, DtRunwayStateRepository, MyEntityStateRep, and TestStateRepository.
|
virtual |
Get a pointer to attribute value for the attribute with the given handle.
This will return an empty pointer if there is a non-existent attribute. If the attribute exists and the size is zero, the pointer will be set to a static value instead of null.
|
virtual |
Get a pointer to attribute value for the attribute with the given handle, but only if it's been updated since the last time we read it.
If it hasn't been update it returns null If the attribute exists and the size is zero, the pointer will be set to a static value instead of null.
|
virtual |
Get a pointer to attribute value for the attribute with the given name.
Note that in order to do this you must provide a DtHlaObject.
|
virtual |
|
virtual |
| DtStateRepository& DtStateRepository::operator= | ( | const DtStateRepository & | orig | ) |
assignment operator
|
virtual |
Print State Data to the DtInfo Stream.
Reimplemented in DtEntityStateRepository, DtBaseEntityStateRepository, DtRadioTransmitterRepository, DtAggregateStateRepository, DtEmitterBeamRepository, DtPointObjectRepository, DtGriddedDataRepository, DtArealObjectRepository, DtLinearObjectRepository, DtRadioReceiverRepository, DtEnvironmentObjectRepository, DtUnderwaterAcousticsStateRepository, DtFederateStateRepository, DtEmitterSystemRepository, DtEmbeddedSystemRepository, DtVRLinkStateStateRepository, DtActiveSonarStateRepository, DtIffStateRepository, DtWeatherStateRepository, DtDIGuyObjectStateRepository, DtIFFDataStateRepository, DtSubsurfaceLayerStateRepository, DtWaterSurfaceStateRepository, DtLandSurfaceStateRepository, DtTroposphereLayerStateRepository, DtEnvironmentConditionStateRepository, DtMode5StateRepository, DtServiceStateRepository, DtWindCorridorStateRepository, DtAerodromeStateRepository, DtMode1StateRepository, DtMode2StateRepository, DtMode3AStateRepository, DtMode4StateRepository, DtModeSStateRepository, DtRRBStateRepository, DtSovietStateRepository, DtTCASDataStateRepository, DtMetocRootStateRepository, DtTurbulenceLayerStateRepository, DtEnvironmentProcessRepository, DtMode3CStateRepository, DtTimeAndDateStateRepository, DtPropulsionNoiseStateRepository, DtAdditionalPassiveActivitiesRepository, DtUnderwaterAcousticsEmissionRepository, DtDesignatorRepository, DtRunwayStateRepository, TestStateRepository, DtActiveSonarBeamRepository, and MyEntityStateRep.
|
virtual |
Prints the State Data to the stream specified.
Reimplemented in DtEntityStateRepository, DtBaseEntityStateRepository, DtRadioTransmitterRepository, DtAggregateStateRepository, DtEmitterBeamRepository, DtPointObjectRepository, DtGriddedDataRepository, DtArealObjectRepository, DtRadioReceiverRepository, DtLinearObjectRepository, DtEnvironmentObjectRepository, DtUnderwaterAcousticsStateRepository, DtFederateStateRepository, DtEmitterSystemRepository, DtEmbeddedSystemRepository, DtVRLinkStateStateRepository, DtActiveSonarStateRepository, DtIffStateRepository, DtWeatherStateRepository, DtDIGuyObjectStateRepository, DtIFFDataStateRepository, DtSubsurfaceLayerStateRepository, DtWaterSurfaceStateRepository, DtLandSurfaceStateRepository, DtTroposphereLayerStateRepository, DtEnvironmentConditionStateRepository, DtMode5StateRepository, DtServiceStateRepository, DtWindCorridorStateRepository, DtAerodromeStateRepository, DtMode1StateRepository, DtMode2StateRepository, DtMode3AStateRepository, DtMode4StateRepository, DtModeSStateRepository, DtRRBStateRepository, DtSovietStateRepository, DtTCASDataStateRepository, DtMetocRootStateRepository, DtTurbulenceLayerStateRepository, DtMode3CStateRepository, DtEnvironmentProcessRepository, DtTimeAndDateStateRepository, DtPropulsionNoiseStateRepository, DtAdditionalPassiveActivitiesRepository, DtUnderwaterAcousticsEmissionRepository, DtDesignatorRepository, DtRunwayStateRepository, TestStateRepository, and DtActiveSonarBeamRepository.
|
virtual |
Returns true if the attribute is published.
|
virtual |
Set the attribute with the given handle.
|
virtual |
Set the attribute with the given name. Note that in order to do this you must provide a DtHlaObject.
|
virtual |
Get/Set global identifier, or name.
Set by VR-Link for reflected objects. Not necessary to set for local objects.
|
virtual |
Get/Set local identifier, or handle.
Set by VR-Link for reflected objects. Not necessary to set for local objects.
|
virtual |
Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.
|
virtual |
Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.
|
virtual |
Returns a set of the registered state repository extension names.
|
virtual |
Returns pointer to a DtStateRepositoryExtension object with the given name Returns 0 if no extension with given name is found.
| std::map<RTI::AttributeHandle, DtGenericAttributeInfo*> DtStateRepository::myAttributesByHandle |
Attributes by handle.
| DtString DtStateRepository::myGlobalId |
| DtObjectId DtStateRepository::myLocalId |
| DtStateRepositoryExtensionMap DtStateRepository::myStateRepositoryExtensionMap |
|
static |