MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

virtual DtAssistantMsgQueue::~DtAssistantMsgQueue ( )
virtual

Destructor.

DtAssistantMsgQueue::DtAssistantMsgQueue ( const DtAssistantMsgQueue )
private

Copy constructor not implemented.

Member Function Documentation

virtual void DtAssistantMsgQueue::addMsg ( const DtAssistantMsg msg,
int  compId 
)
virtual

Add message to queue.

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

Add message callback.

virtual void DtAssistantMsgQueue::beginProcessMsg ( )
virtual

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

Does nothing if another message is already being processed.

virtual int DtAssistantMsgQueue::currentCompId ( ) const
virtual

Get the component ID from which the current message being processed was received.

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

Get the current message being processed.

virtual void DtAssistantMsgQueue::finishProcessMsg ( )
virtual

Finish processing for the current message.

Must be called before before beginProcessMsg will allow a new message to be processed.

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

Assignment not implemented.

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

Remove message callback.

Member Data Documentation

DtAssistantMsgQueueItem* DtAssistantMsgQueue::myCurrMsgItem
protected

The item in the queue currently being processed.

DtAssistantMsgCbMgr DtAssistantMsgQueue::myMsgCbMgr
protected

Callback manager.

DtList DtAssistantMsgQueue::myMsgList
protected

List of messages in the queue.


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

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)