MAK RTIspy API Documentation for HLA 1516
List of all members | Classes | Public Member Functions | Protected Attributes | Private Member Functions
DtAssistantMsgQueue Class Reference

Maintains a queue of RTI Assistant messages. More...

+ Collaboration diagram for DtAssistantMsgQueue:

Classes

struct  DtAssistantMsgQueueItem

Public Member Functions

 DtAssistantMsgQueue ()
 Constructor.
virtual ~DtAssistantMsgQueue ()
 Destructor.
virtual void addMsgCallback (DtAssistantMsgKind msgKind, DtAssistantMsgCbMgr::DtCallbackFcn fcn, void *usr)
 Add message callback.
virtual void removeMsgCallback (DtAssistantMsgKind msgKind, DtAssistantMsgCbMgr::DtCallbackFcn fcn, void *usr)
 Remove message callback.
virtual void addMsg (const DtAssistantMsg &msg, int compId)
 Add message to queue.
virtual void beginProcessMsg ()
 Begin processing for the next message, calling any registered callbacks.
virtual void finishProcessMsg ()
 Finish processing for the current message.
virtual const DtAssistantMsgcurrMsg () const
 Get the current message being processed.
virtual int currentCompId () const
 Get the component ID from which the current message being processed was received.

Protected Attributes

DtList myMsgList
 List of messages in the queue.
DtAssistantMsgQueueItemmyCurrMsgItem
 The item in the queue currently being processed.
DtAssistantMsgCbMgr myMsgCbMgr
 Callback manager.

Private Member Functions

 DtAssistantMsgQueue (const DtAssistantMsgQueue &)
 Copy constructor not implemented.
DtAssistantMsgQueueoperator= (const DtAssistantMsgQueue &)
 Assignment not implemented.

Detailed Description

Maintains a queue of RTI Assistant messages.

DtAssistantMsgQueue queues messages for later processing. Only one message from the queue may be processed at any given time. Callback functions may be registered with the queue to process messages.

Constructor & Destructor Documentation

DtAssistantMsgQueue::DtAssistantMsgQueue ( )

Constructor.

DtAssistantMsgQueue::~DtAssistantMsgQueue ( )
virtual
DtAssistantMsgQueue::DtAssistantMsgQueue ( const DtAssistantMsgQueue )
private

Copy constructor not implemented.

Member Function Documentation

void DtAssistantMsgQueue::addMsg ( const DtAssistantMsg msg,
int  compId 
)
virtual
void DtAssistantMsgQueue::addMsgCallback ( DtAssistantMsgKind  msgKind,
DtAssistantMsgCbMgr::DtCallbackFcn  fcn,
void *  usr 
)
virtual
void DtAssistantMsgQueue::beginProcessMsg ( )
virtual

Begin processing for the next message, calling any registered callbacks.

Does nothing if another message is already being processed.

References DtAssistantMsgQueue::DtAssistantMsgQueueItem::msg, myCurrMsgItem, myMsgCbMgr, and myMsgList.

Referenced by DtAssistantPopupMsgMgr::tick(), DtAssistantLicenseQueryMgr::tick(), and DtAssistantConnQueryMgr::tick().

int DtAssistantMsgQueue::currentCompId ( ) const
virtual
const DtAssistantMsg * DtAssistantMsgQueue::currMsg ( ) const
virtual

Get the current message being processed.

References DtAssistantMsgQueue::DtAssistantMsgQueueItem::msg, and myCurrMsgItem.

void DtAssistantMsgQueue::finishProcessMsg ( )
virtual
DtAssistantMsgQueue& DtAssistantMsgQueue::operator= ( const DtAssistantMsgQueue )
private

Assignment not implemented.

void DtAssistantMsgQueue::removeMsgCallback ( DtAssistantMsgKind  msgKind,
DtAssistantMsgCbMgr::DtCallbackFcn  fcn,
void *  usr 
)
virtual

Member Data Documentation

DtAssistantMsgQueueItem* DtAssistantMsgQueue::myCurrMsgItem
protected

The item in the queue currently being processed.

Referenced by beginProcessMsg(), currentCompId(), currMsg(), and finishProcessMsg().

DtAssistantMsgCbMgr DtAssistantMsgQueue::myMsgCbMgr
protected

Callback manager.

Referenced by addMsgCallback(), beginProcessMsg(), and removeMsgCallback().

DtList DtAssistantMsgQueue::myMsgList
protected

List of messages in the queue.

Referenced by addMsg(), beginProcessMsg(), and ~DtAssistantMsgQueue().


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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)