VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
DtOwnershipHandler Class Reference

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...
 
DtOwnershipHandleroperator= (const DtOwnershipHandler &other)
 Assignment operator. More...
 
virtual DtOwnershipHandlerclone () const
 Clone copy. More...
 
virtual DtHlaObjecthlaObject ()
 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

DtHlaObjectmyHlaObj
 

Friends

class DtHlaObject
 

Detailed Description

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.

Constructor & Destructor Documentation

DtOwnershipHandler::DtOwnershipHandler ( )

Constructor.

virtual DtOwnershipHandler::~DtOwnershipHandler ( )
virtual

Destructor.

DtOwnershipHandler::DtOwnershipHandler ( const DtOwnershipHandler other)

Copy constructor.

Member Function Documentation

virtual void DtOwnershipHandler::attributeOwnershipAcquisitionNotification ( const RTI::AttributeHandleSet &  securedAttributes)
virtual

Called as a result of the attributeOwnershipAcquisitionNotification RTI service.

virtual void DtOwnershipHandler::attributeOwnershipDivestitureNotification ( const RTI::AttributeHandleSet &  releasedAttributes)
virtual

Called as a result of the attributeOwnershipDivestitureNotification RTI service.

virtual DtOwnershipHandler* DtOwnershipHandler::clone ( ) const
virtual
virtual void DtOwnershipHandler::confirmAttributeOwnershipAcquisitionCancellation ( const RTI::AttributeHandleSet &  attributes)
virtual

Called as a result of the confirmAttributeOwnershipAcquisitionCancellation RTI service.

virtual void DtOwnershipHandler::gainOwnership ( const RTI::AttributeHandleSet &  set)
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 DtHlaObject* DtOwnershipHandler::hlaObject ( )
virtual

Returns a pointer to the DtHlaObject with which this instance has been registered.

virtual void DtOwnershipHandler::loseOwnership ( const RTI::AttributeHandleSet &  set)
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 void DtOwnershipHandler::requestAttributeOwnershipAssumption ( const RTI::AttributeHandleSet &  offeredAttributes,
const char *  theTag 
)
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 bool DtOwnershipHandler::requesteOwnershipRelease ( const RTI::AttributeHandleSet &  candidateAttributes,
const char *  theTag 
)
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.

virtual void DtOwnershipHandler::setHlaObject ( DtHlaObject obj)
protectedvirtual

Friends And Related Function Documentation

friend class DtHlaObject
friend

Member Data Documentation

DtHlaObject* DtOwnershipHandler::myHlaObj
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)