![]() |
VR-Link API Documentation for HLA 4
|
This is a base class meant to encapsulate user callbacks on ownership management services. More...
Inheritance diagram for DtOwnershipHandler:
Collaboration diagram for DtOwnershipHandler:Public Member Functions | |
| DtOwnershipHandler () | |
| Constructor. More... | |
| virtual | ~DtOwnershipHandler () |
| Destructor. More... | |
| DtOwnershipHandler (const DtOwnershipHandler &other) | |
| Copy constructor. More... | |
| DtOwnershipHandler & | operator= (const DtOwnershipHandler &other) |
| Assignment operator. More... | |
| virtual DtOwnershipHandler * | clone () const |
| Clone copy. More... | |
| virtual DtHlaObject * | hlaObject () |
| Returns a pointer to the DtHlaObject with which this instance has been registered. More... | |
| virtual void | gainOwnership (const RTI::AttributeHandleSet &set) |
| Called whenever the local federate has gained ownership of a set of attributes. More... | |
| virtual void | loseOwnership (const RTI::AttributeHandleSet &set) |
| Called whenever the local federate has lost ownership of a set of attributes. More... | |
| virtual void | attributeOwnershipDivestitureNotification (const RTI::AttributeHandleSet &releasedAttributes) |
| Called as a result of the attributeOwnershipDivestitureNotification RTI service. More... | |
| virtual void | attributeOwnershipAcquisitionNotification (const RTI::AttributeHandleSet &securedAttributes) |
| Called as a result of the attributeOwnershipAcquisitionNotification RTI service. More... | |
| virtual void | requestAttributeOwnershipAssumption (const RTI::AttributeHandleSet &offeredAttributes, const char *theTag) |
| Called as a result of the requestAttributeOwnershipAssumption RTI service. More... | |
| virtual bool | requesteOwnershipRelease (const RTI::AttributeHandleSet &candidateAttributes, const char *theTag) |
| Called as a result of the requestAttributeOwnershipRelease RTI service. More... | |
| virtual void | confirmAttributeOwnershipAcquisitionCancellation (const RTI::AttributeHandleSet &attributes) |
| Called as a result of the confirmAttributeOwnershipAcquisitionCancellation RTI service. More... | |
Protected Member Functions | |
| virtual void | setHlaObject (DtHlaObject *obj) |
Protected Attributes | |
| DtHlaObject * | myHlaObj |
Friends | |
| class | DtHlaObject |
This is a base class meant to encapsulate user callbacks on ownership management services.
Users should derive from this class, override the empty functions declared here with implementations that perform desired actions, and pass an instance of the subclass to DtHlaObject's setOwnershipHandler. When this is done, your implementations will be called at the appropriate times.
| DtOwnershipHandler::DtOwnershipHandler | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtOwnershipHandler::DtOwnershipHandler | ( | const DtOwnershipHandler & | other | ) |
Copy constructor.
|
virtual |
Called as a result of the attributeOwnershipAcquisitionNotification RTI service.
|
virtual |
Called as a result of the attributeOwnershipDivestitureNotification RTI service.
|
virtual |
Clone copy.
Reimplemented in DtDefaultOwnershipHandler, DtPartialOwnershipHandler, and DtRprOwnershipHandler.
|
virtual |
Called as a result of the confirmAttributeOwnershipAcquisitionCancellation RTI service.
|
virtual |
Called whenever the local federate has gained ownership of a set of attributes.
This can happen as the result of an attributeOwnershipAcquisitionNotification RTI service call.
Reimplemented in DtDefaultOwnershipHandler, and DtPartialOwnershipHandler.
|
virtual |
Returns a pointer to the DtHlaObject with which this instance has been registered.
|
virtual |
Called whenever the local federate has lost ownership of a set of attributes.
This can happen as a result of an explicit or implicit unpublish, an attributeOwnershipDivestitureNotification RTI service call, or a call to DtHlaObject::unconditionalDivest.
Reimplemented in DtDefaultOwnershipHandler, and DtPartialOwnershipHandler.
| DtOwnershipHandler& DtOwnershipHandler::operator= | ( | const DtOwnershipHandler & | other | ) |
Assignment operator.
|
virtual |
Called as a result of the requestAttributeOwnershipAssumption RTI service.
You can call DtHlaObject's acquireAttributes even though you are within an RTI callback.
Reimplemented in DtDefaultOwnershipHandler, and DtRprOwnershipHandler.
|
virtual |
Called as a result of the requestAttributeOwnershipRelease RTI service.
You should return true if you accept this attribute transfer, and false otherwise
Reimplemented in DtDefaultOwnershipHandler, and DtRprOwnershipHandler.
|
protectedvirtual |
|
friend |
|
protected |