MAK RTIspy API Documentation for HLA 1.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtOwnershipMsg Class Reference
+ Inheritance diagram for DtOwnershipMsg:
+ Collaboration diagram for DtOwnershipMsg:

List of all members.

Public Member Functions

 DtOwnershipMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtOwnershipMsg (DtOwnerMsgKind kind, DtObjectInstanceHandle objHand, const DtAttributeHandleSet &attrs, DtFederateHandle targetFed=0, char const *theTag=NULL, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtOwnershipMsg (DtOwnerMsgKind kind, DtObjectInstanceHandle objHand, const DtAttributeHandle attr, DtFederateHandle targetFed=0, char const *theTag=NULL, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor, with single attribute handle.
 DtOwnershipMsg (const DtNetOwnershipMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
virtual ~DtOwnershipMsg ()
 Destructor.
virtual DtRtiMsgclone (bool copy=true) const
 Return a copy/empty object of the same type as this.
virtual void set (DtOwnerMsgKind kind, DtObjectInstanceHandle objHand, const DtAttributeHandleSet &attrs, DtFederateHandle targetFed=0, char const *theTag=theDefaultTag)
 Set all fields simultaneously.
virtual void set (DtOwnerMsgKind kind, DtObjectInstanceHandle objHand, const DtAttributeHandle attr, DtFederateHandle targetFed=0, char const *theTag=theDefaultTag)
virtual void setOwnerMsgKind (DtOwnerMsgKind kind)
 Set/Get kind.
virtual DtOwnerMsgKind ownerMsgKind () const
virtual void setObjHandle (DtObjectInstanceHandle id)
 Set/Get handle.
virtual DtObjectInstanceHandle objHandle () const
virtual void setClassHandle (DtObjectClassHandle handle)
 Set/Get class handle.
virtual DtObjectClassHandle classHandle () const
virtual void setTag (char const *tag)
 Set/Get tag.
virtual char const * tag () const
virtual void setRecipientFederate (DtFederateHandle hand)
 Set/Get recipient federate handle.
virtual DtFederateHandle recipientFederate () const
virtual void setAttrHandles (const DtAttributeHandleSet &attrs)
 Set/Get attribute handles.
virtual const
DtAttributeHandleSet
attrHandles () const
virtual void printData (DtLogicalTimeFactory *logicalTimeFactory) const
 Print the data section.

Static Public Member Functions

static DtRtiMsgcreate (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static DtRtiMsgcreate (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static void addCallback (DtConnectionMgr *conn, DtOwnershipCb cb, void *usr)
 Callback management.
static void removeCallback (DtConnectionMgr *conn, DtOwnershipCb cb, void *usr)

Protected Member Functions

virtual char * tagPtr ()
 Returns pointer to the tag in the netMsg.
virtual int tagFieldSize () const
 Returns size of tag field.
virtual DtNetOwnershipMsgnetOwnershipMsg ()
 The network representation.
virtual const DtNetOwnershipMsgnetOwnershipMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of an Ownership Msg.
virtual int minSize () const
 Returns minimum size of a message, including header.
virtual DtOwnershipMsgself () const
 Casts away const-ness.

Protected Attributes

int myDirty
DtAttributeHandleSetmyAttrs
char * myTag

Constructor & Destructor Documentation

DtOwnershipMsg::DtOwnershipMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructor.

References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().

Referenced by clone(), and create().

DtOwnershipMsg::DtOwnershipMsg ( DtOwnerMsgKind  kind,
DtObjectInstanceHandle  objHand,
const DtAttributeHandleSet attrs,
DtFederateHandle  targetFed = 0,
char const *  theTag = NULL,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtOwnershipMsg::DtOwnershipMsg ( DtOwnerMsgKind  kind,
DtObjectInstanceHandle  objHand,
const DtAttributeHandle  attr,
DtFederateHandle  targetFed = 0,
char const *  theTag = NULL,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtOwnershipMsg::DtOwnershipMsg ( const DtNetOwnershipMsg netRepMsg,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Constructor.

References DtNetOwnershipMsg::header, and DtRtiMsg::initDtRtiMsg().

Destructor.

References myAttrs.


Member Function Documentation

void DtOwnershipMsg::addCallback ( DtConnectionMgr conn,
DtOwnershipCb  cb,
void *  usr 
) [static]
DtRtiMsg * DtOwnershipMsg::clone ( bool  copy = true) const [virtual]

Return a copy/empty object of the same type as this.

Implements DtRtiMsg.

References DtOwnershipMsg(), and netOwnershipMsg().

DtRtiMsg * DtOwnershipMsg::create ( const DtNetMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creator.

References DtOwnershipMsg().

DtRtiMsg * DtOwnershipMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER) [static]

Creator.

References DtOwnershipMsg().

Returns the kind of an Ownership Msg.

Implements DtRtiMsg.

References DtOwnershipMsgKind.

Referenced by DtOwnershipMsg().

int DtOwnershipMsg::minSize ( ) const [protected, virtual]

Returns minimum size of a message, including header.

Referenced by DtOwnershipMsg().

const DtNetOwnershipMsg * DtOwnershipMsg::netOwnershipMsg ( ) const [protected, virtual]
void DtOwnershipMsg::printData ( DtLogicalTimeFactory logicalTimeFactory) const [virtual]
void DtOwnershipMsg::removeCallback ( DtConnectionMgr conn,
DtOwnershipCb  cb,
void *  usr 
) [static]
DtOwnershipMsg * DtOwnershipMsg::self ( ) const [inline, protected, virtual]

Casts away const-ness.

void DtOwnershipMsg::set ( DtOwnerMsgKind  kind,
DtObjectInstanceHandle  objHand,
const DtAttributeHandleSet attrs,
DtFederateHandle  targetFed = 0,
char const *  theTag = theDefaultTag 
) [virtual]

Set all fields simultaneously.

Referenced by DtObjectMgr::releaseAllAttributes(), and DtObjectMgr::sendOwnershipMsg().

void DtOwnershipMsg::set ( DtOwnerMsgKind  kind,
DtObjectInstanceHandle  objHand,
const DtAttributeHandle  attr,
DtFederateHandle  targetFed = 0,
char const *  theTag = theDefaultTag 
) [virtual]
void DtOwnershipMsg::setAttrHandles ( const DtAttributeHandleSet attrs) [virtual]

Set/Get attribute handles.

References myDirty, and netOwnershipMsg().

Referenced by DtOwnershipMsg().

Set/Get class handle.

References DtNetOwnershipMsg::handle, and netOwnershipMsg().

Referenced by DtObjectMgr::releaseAllAttributes().

Set/Get handle.

References DtNetOwnershipMsg::id, and netOwnershipMsg().

Referenced by DtOwnershipMsg().

Set/Get kind.

References netOwnershipMsg(), and DtNetOwnershipMsg::ownerMsgKind.

Referenced by DtOwnershipMsg().

Set/Get recipient federate handle.

References netOwnershipMsg(), and DtNetOwnershipMsg::recvFed.

Referenced by DtOwnershipMsg(), and DtFedExec::processOwnership().

void DtOwnershipMsg::setTag ( char const *  tag) [virtual]
char const * DtOwnershipMsg::tag ( ) const [virtual]
int DtOwnershipMsg::tagFieldSize ( ) const [protected, virtual]

Returns size of tag field.

References netOwnershipMsg(), and DtNetOwnershipMsg::tagSize.

Referenced by setTag().

char * DtOwnershipMsg::tagPtr ( ) [protected, virtual]

Returns pointer to the tag in the netMsg.

References netOwnershipMsg().

Referenced by setTag(), and tag().


Member Data Documentation

Referenced by attrHandles(), and ~DtOwnershipMsg().

int DtOwnershipMsg::myDirty [protected]

Referenced by attrHandles(), and setAttrHandles().

char* DtOwnershipMsg::myTag [protected]

Referenced by setTag(), and tag().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)