![]() |
VR-Link API Documentation for HLA 1516
|
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::ParameterHandleValueMap &p, const RTI::LogicalTime *fedTime, const RTI::VariableLengthData &tag, const RTI::RegionHandleSet *regions=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. | |
| DtInteractionManager & | operator= (const DtInteractionManager &orig) |
| assignment operator - not implemented. | |
| void | emptyCbList () |
| Empty callback list. | |
| virtual DtList * | cbList (RTI::InteractionClassHandle handle) |
| Returns the list of callbacks registered for a particular class. | |
Protected Attributes | |
| DtExerciseConn * | myExConn |
| DtInteractionFactory * | myFactory |
| DtHashlist | myCbLists |
| DtHashlist that maps object class handles (DtIntHashKeys) to pointers to DtLists of callback functions. | |
class DtInteractionManager:
Instances of DtInteractionManager are used to manage the creation and processing of HLA interactions.
| DtInteractionManager::DtInteractionManager | ( | DtInteractionFactory * | factory, |
| DtExerciseConn * | exConn | ||
| ) |
constructor
| virtual DtInteractionManager::~DtInteractionManager | ( | ) | [virtual] |
destructor
| DtInteractionManager::DtInteractionManager | ( | const DtInteractionManager & | orig | ) | [protected] |
copy constructor - not implemented.
| 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 | ) | [protected, virtual] |
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::ParameterHandleValueMap & | p, | ||
| const RTI::LogicalTime * | fedTime, | ||
| const RTI::VariableLengthData & | tag, | ||
| const RTI::RegionHandleSet * | regions = 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] |
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] |