VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtInteractionManager Class Reference

class DtInteractionManager: More...

+ Collaboration diagram for DtInteractionManager:

Public Member Functions

 DtInteractionManager (DtInteractionFactory *factory, DtExerciseConn *exConn)
 constructor
virtual ~DtInteractionManager ()
 destructor
virtual void addInteractionCallback (RTI::InteractionClassHandle h, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Add/remove a callback to be called when an interaction is received from another federate.
virtual void removeInteractionCallback (RTI::InteractionClassHandle h, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
virtual void processInteraction (RTI::InteractionClassHandle h, const RTI::ParameterHandleValuePairSet &p, const RTI::FedTime *fedTime, const char *tag=NULL, const RTI::Region *region=0)
 Create an interaction object, call the registered callbacks, then delete the interaction object.

Protected Member Functions

 DtInteractionManager (const DtInteractionManager &orig)
 copy constructor - not implemented.
DtInteractionManageroperator= (const DtInteractionManager &orig)
 assignment operator - not implemented.
void emptyCbList ()
 Empty callback list.
virtual DtListcbList (RTI::InteractionClassHandle handle)
 Returns the list of callbacks registered for a particular class.

Protected Attributes

DtExerciseConnmyExConn
DtInteractionFactorymyFactory
DtHashlist myCbLists
 DtHashlist that maps object class handles (DtIntHashKeys) to pointers to DtLists of callback functions.

Detailed Description

class DtInteractionManager:

Instances of DtInteractionManager are used to manage the creation and processing of HLA interactions.

Constructor & Destructor Documentation

DtInteractionManager::DtInteractionManager ( DtInteractionFactory factory,
DtExerciseConn exConn 
)

constructor

virtual DtInteractionManager::~DtInteractionManager ( )
virtual

destructor

DtInteractionManager::DtInteractionManager ( const DtInteractionManager orig)
protected

copy constructor - not implemented.

Member Function Documentation

virtual void DtInteractionManager::addInteractionCallback ( RTI::InteractionClassHandle  h,
DtReceiveInteractionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
virtual

Add/remove a callback to be called when an interaction is received from another federate.

virtual DtList* DtInteractionManager::cbList ( RTI::InteractionClassHandle  handle)
protectedvirtual

Returns the list of callbacks registered for a particular class.

void DtInteractionManager::emptyCbList ( )
protected

Empty callback list.

Non-virtual since meant to be called from destructor.

DtInteractionManager& DtInteractionManager::operator= ( const DtInteractionManager orig)
protected

assignment operator - not implemented.

virtual void DtInteractionManager::processInteraction ( RTI::InteractionClassHandle  h,
const RTI::ParameterHandleValuePairSet &  p,
const RTI::FedTime *  fedTime,
const char *  tag = NULL,
const RTI::Region *  region = 0 
)
virtual

Create an interaction object, call the registered callbacks, then delete the interaction object.

virtual void DtInteractionManager::removeInteractionCallback ( RTI::InteractionClassHandle  h,
DtReceiveInteractionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
virtual

Member Data Documentation

DtHashlist DtInteractionManager::myCbLists
protected

DtHashlist that maps object class handles (DtIntHashKeys) to pointers to DtLists of callback functions.

DtExerciseConn* DtInteractionManager::myExConn
protected
DtInteractionFactory* DtInteractionManager::myFactory
protected

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

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)