MAK RTIspy API Documentation for HLA Evolved
Classes | Public Member Functions | Protected Attributes | Private Member Functions
DtAssistantMsgQueue Class Reference

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

+ Collaboration diagram for DtAssistantMsgQueue:

List of all members.

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

Constructor.

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]

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.

DtAssistantMsgQueue& DtAssistantMsgQueue::operator= ( const DtAssistantMsgQueue ) [private]

Assignment not implemented.

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

Member Data Documentation

The item in the queue currently being processed.

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

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 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)