![]() |
VR-Link API Documentation for HLA Evolved
|
Instances of DtInteractionFactory are used to create derived DtInteractions based on Interaction Class. More...
Inheritance diagram for DtInteractionFactory:
Collaboration diagram for DtInteractionFactory:Public Types | |
| typedef DtInteraction *(* | DtInteractionCreator )() |
| Interaction creation function signature. | |
Public Member Functions | |
| DtInteractionFactory (DtExerciseConn *exConn) | |
| constructor | |
| virtual | ~DtInteractionFactory () |
| destructor | |
| virtual DtInteraction * | createInteraction (RTI::InteractionClassHandle handle, const RTI::ParameterHandleValuePairSet &pairSet) |
| Create the specified interaction. | |
| virtual DtInteractionCreator | addCreator (RTI::InteractionClassHandle handle, DtInteractionCreator creator) |
| Add an interaction creation function to the factory. | |
| virtual DtInteractionCreator | addCreator (const char *className, DtInteractionCreator creator) |
| virtual DtInteractionCreator | creator (RTI::InteractionClassHandle handle) |
Protected Types | |
| typedef std::map < RTI::InteractionClassHandle, DtInteractionCreator > | InterClassHandleToCreatorMap |
Protected Member Functions | |
| DtInteractionFactory (const DtInteractionFactory &orig) | |
| copy constructor - not implemented. | |
| DtInteractionFactory & | operator= (const DtInteractionFactory &orig) |
| assignment operator - not implemented. | |
Protected Attributes | |
| InterClassHandleToCreatorMap | myCreators |
| DtExerciseConn * | myExConn |
Instances of DtInteractionFactory are used to create derived DtInteractions based on Interaction Class.
| typedef DtInteraction*(* DtInteractionFactory::DtInteractionCreator)() |
Interaction creation function signature.
typedef std::map<RTI::InteractionClassHandle, DtInteractionCreator> DtInteractionFactory::InterClassHandleToCreatorMap [protected] |
constructor
| virtual DtInteractionFactory::~DtInteractionFactory | ( | ) | [virtual] |
destructor
| DtInteractionFactory::DtInteractionFactory | ( | const DtInteractionFactory & | orig | ) | [protected] |
copy constructor - not implemented.
| virtual DtInteractionCreator DtInteractionFactory::addCreator | ( | RTI::InteractionClassHandle | handle, |
| DtInteractionCreator | creator | ||
| ) | [virtual] |
Add an interaction creation function to the factory.
The function must return a new'ed interaction object which will be deleted by the user. Returns any previous interaction creation function which was replaced by the add. Second version registers the creator by name, rather than by handle.
| virtual DtInteractionCreator DtInteractionFactory::addCreator | ( | const char * | className, |
| DtInteractionCreator | creator | ||
| ) | [virtual] |
| virtual DtInteraction* DtInteractionFactory::createInteraction | ( | RTI::InteractionClassHandle | handle, |
| const RTI::ParameterHandleValuePairSet & | pairSet | ||
| ) | [virtual] |
Create the specified interaction.
Note: Caller is responsible for deleting. Returns NULL if interaction creation function is not in the factory.
| virtual DtInteractionCreator DtInteractionFactory::creator | ( | RTI::InteractionClassHandle | handle | ) | [virtual] |
| DtInteractionFactory& DtInteractionFactory::operator= | ( | const DtInteractionFactory & | orig | ) | [protected] |
assignment operator - not implemented.
DtExerciseConn* DtInteractionFactory::myExConn [protected] |