This class extends the default ownership handler and adds new callbacks to be activated whenever partial ownership has been transferred Only when full ownership is transferred will the default ownership handlers be called.
More...
Public Member Functions |
| | DtPartialOwnershipHandler () |
| | Constructor.
|
| virtual | ~DtPartialOwnershipHandler () |
| | Destructor.
|
| virtual DtOwnershipHandler * | clone () const |
| | Clone copy.
|
| | DtPartialOwnershipHandler (const DtPartialOwnershipHandler &other) |
| | Copy constructor.
|
| DtPartialOwnershipHandler & | operator= (const DtPartialOwnershipHandler &other) |
| | Assignment operator.
|
| virtual void | gainOwnership (const RTI::AttributeHandleSet &set) |
| | Called whenever the local federate has acquired ownership of a set of attributes.
|
| virtual void | loseOwnership (const RTI::AttributeHandleSet &set) |
| | Called whenever the local federate has lost ownership of a set of attributes.
|
| virtual void | addPartialAcquireOwnershipCallback (DtPartialAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| | Callback for Acquiring ownership when only part of the object is acquired.
|
| virtual void | removePartialAcquireOwnershipCallback (DtPartialAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addPartialDivestOwnershipCallback (DtPartialDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| | Callback for divesting ownership when only part of the object is divested.
|
| virtual void | removePartialDivestOwnershipCallback (DtPartialDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addPartialAcquireOwnershipRequestCallback (DtPartialAcquireOwnershipRequestCb cb, void *usr) |
| | Callbacks for Acquiring ownership.
|
| virtual void | removePartialAcquireOwnershipRequestCallback (DtPartialAcquireOwnershipRequestCb cb, void *usr) |
| virtual void | addPartialDivestOwnershipRequestCallback (DtPartialDivestOwnershipRequestCb cb, void *usr) |
| | Callbacks for divesting ownership.
|
| virtual void | removePartialDivestOwnershipRequestCallback (DtPartialDivestOwnershipRequestCb cb, void *usr) |
Public Member Functions inherited from DtDefaultOwnershipHandler |
| | DtDefaultOwnershipHandler () |
| | Constructor.
|
| virtual | ~DtDefaultOwnershipHandler () |
| | Destructor.
|
| | DtDefaultOwnershipHandler (const DtDefaultOwnershipHandler &other) |
| | Copy constructor.
|
| DtDefaultOwnershipHandler & | operator= (const DtDefaultOwnershipHandler &other) |
| | Assignment operator.
|
| virtual void | setOwnershipAcquisitionAction (DtOwnershipAction) |
| | Set the default action when someone offers an object to acquire Your three options are, accept, deny, or send a callback to ask for this information.
|
| virtual void | setOwnershipDivestitudeAction (DtOwnershipAction) |
| | Set the default action when someone requests your object to acquire Your three options are, accept, deny, or send a callback to ask for this information.
|
| virtual void | addAcquireOwnershipCallback (DtAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| | Callback for Acquiring ownership.
|
| virtual void | removeAcquireOwnershipCallback (DtAcquireOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addDivestOwnershipCallback (DtDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| | Callback for divesting ownership.
|
| virtual void | removeDivestOwnershipCallback (DtDivestOwnershipCb cb, void *usr, const DtObjClassDesc *desc=0) |
| virtual void | addAcquireOwnershipRequestCallback (DtAcquireOwnershipRequestCb cb, void *usr) |
| | Callback for acquiring and divesting requests.
|
| virtual void | removeAcquireOwnershipRequestCallback (DtAcquireOwnershipRequestCb cb, void *usr) |
| virtual void | addDivestOwnershipRequestCallback (DtDivestOwnershipRequestCb cb, void *usr) |
| virtual void | removeDivestOwnershipRequestCallback (DtDivestOwnershipRequestCb cb, void *usr) |
| virtual bool | requesteOwnershipRelease (const RTI::AttributeHandleSet &candidateAttributes, const char *theTag) |
| | Called as a result of the requestAttributeOwnershipRelease RTI service.
|
| virtual void | requestAttributeOwnershipAssumption (const RTI::AttributeHandleSet &offeredAttributes, const char *theTag) |
| | Called as a result of the requestAttributeOwnershipAssumption RTI service.
|
Public Member Functions inherited from DtOwnershipHandler |
| | DtOwnershipHandler () |
| | Constructor.
|
| virtual | ~DtOwnershipHandler () |
| | Destructor.
|
| | DtOwnershipHandler (const DtOwnershipHandler &other) |
| | Copy constructor.
|
| DtOwnershipHandler & | operator= (const DtOwnershipHandler &other) |
| | Assignment operator.
|
| virtual DtHlaObject * | hlaObject () |
| | Returns a pointer to the DtHlaObject with which this instance has been registered.
|
| virtual void | attributeOwnershipDivestitureNotification (const RTI::AttributeHandleSet &releasedAttributes) |
| | Called as a result of the attributeOwnershipDivestitureNotification RTI service.
|
| virtual void | attributeOwnershipAcquisitionNotification (const RTI::AttributeHandleSet &securedAttributes) |
| | Called as a result of the attributeOwnershipAcquisitionNotification RTI service.
|
| virtual void | confirmAttributeOwnershipAcquisitionCancellation (const RTI::AttributeHandleSet &attributes) |
| | Called as a result of the confirmAttributeOwnershipAcquisitionCancellation RTI service.
|
This class extends the default ownership handler and adds new callbacks to be activated whenever partial ownership has been transferred Only when full ownership is transferred will the default ownership handlers be called.