VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtSimInternalCommunicationInterface Class Reference

The handler for all SimInternal messages that are sent to and from a specified DtLocalObject. This class is the central interface of a DtLocalObject to the SimInternal message system of inter-VrfObject communication. Callbacks can be registered for message receipt and messages can be sent. Normally, components on an entity will register with 3CommunicationInterface instead of with this object directly.

Public Member Functions

virtual ~DtSimInternalCommunicationInterface ()
 
virtual void sendMessage (DtVrfObjectMessage *message)
 
virtual void receiveMessage (const DtVrfObjectMessage *message)
 
virtual DtLocalObjectvrfObject ()
 
virtual void addMessageCallback (DtVrfObjectMessageCallbackFcn fcn, void *usr)
 
virtual void removeMessageCallback (DtVrfObjectMessageCallbackFcn fcn, void *usr)
 
virtual void addMessageCallback (int type, DtVrfObjectMessageCallbackFcn fcn, void *usr)
 
virtual void removeMessageCallback (int type, DtVrfObjectMessageCallbackFcn fcn, void *usr)
 

Static Public Member Functions

static
DtSimInternalCommunicationInterface
create (DtLocalObject *vrfObj)
 

Protected Member Functions

 DtSimInternalCommunicationInterface (DtLocalObject *vrfObj)
 
virtual bool init ()
 

Protected Attributes

DtLocalObjectmyVrfObject
 
DtVrfObjectMessageExecutive myMessageExecutive
 

Private Member Functions

 DtSimInternalCommunicationInterface ()
 
 DtSimInternalCommunicationInterface (const DtSimInternalCommunicationInterface &orig)
 
DtSimInternalCommunicationInterfaceoperator= (const DtSimInternalCommunicationInterface &orig)
 

Constructor & Destructor Documentation

DtSimInternalCommunicationInterface::DtSimInternalCommunicationInterface ( )
private

Not implemented.

DtSimInternalCommunicationInterface::DtSimInternalCommunicationInterface ( const DtSimInternalCommunicationInterface orig)
private

Not implemented.

DtSimInternalCommunicationInterface::DtSimInternalCommunicationInterface ( DtLocalObject vrfObj)
protected

Constructor. Do not call directly. Call create() instead.

virtual DtSimInternalCommunicationInterface::~DtSimInternalCommunicationInterface ( )
virtual

Member Function Documentation

DtSimInternalCommunicationInterface& DtSimInternalCommunicationInterface::operator= ( const DtSimInternalCommunicationInterface orig)
private

Not implemented.

static DtSimInternalCommunicationInterface* DtSimInternalCommunicationInterface::create ( DtLocalObject vrfObj)
static

Calls constructor and virtual init().

virtual bool DtSimInternalCommunicationInterface::init ( )
protectedvirtual

Virtual init is called by the static creator method after construction.

virtual void DtSimInternalCommunicationInterface::sendMessage ( DtVrfObjectMessage message)
virtual

Fills in the sender name, and sends the message out to any designated recipients.

virtual void DtSimInternalCommunicationInterface::addMessageCallback ( DtVrfObjectMessageCallbackFcn  fcn,
void *  usr 
)
virtual

Callback which is called for every message that is received by this interface.

virtual void DtSimInternalCommunicationInterface::removeMessageCallback ( DtVrfObjectMessageCallbackFcn  fcn,
void *  usr 
)
virtual

Callback which is called for every message that is received by this interface.

virtual void DtSimInternalCommunicationInterface::addMessageCallback ( int  type,
DtVrfObjectMessageCallbackFcn  fcn,
void *  usr 
)
virtual

Callback which is called when a specific type of object message is processed. The type parameter is the content type of the message.

virtual void DtSimInternalCommunicationInterface::removeMessageCallback ( int  type,
DtVrfObjectMessageCallbackFcn  fcn,
void *  usr 
)
virtual

Callback which is called when a specific type of object message is processed. The type parameter is the content type of the message.

virtual void DtSimInternalCommunicationInterface::receiveMessage ( const DtVrfObjectMessage message)
virtual

This method pushes this message into the message executive, and any appropriate callbacks are invoked. This method should only be called by the DtSimInternalCommunicationManager.

virtual DtLocalObject* DtSimInternalCommunicationInterface::vrfObject ( )
virtual
Returns
The DtLocalObject that is associated with this interface.

Member Data Documentation

DtLocalObject* DtSimInternalCommunicationInterface::myVrfObject
protected
DtVrfObjectMessageExecutive DtSimInternalCommunicationInterface::myMessageExecutive
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)