VR-Link API Documentation for HLA 1516
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtInteractionFactory Class Reference

Instances of DtInteractionFactory are used to create derived DtInteractions based on Interaction Class. More...

+ Inheritance diagram for DtInteractionFactory:
+ Collaboration diagram for DtInteractionFactory:

List of all members.

Public Types

typedef DtInteraction *(* DtInteractionCreator )()
 Interaction creation function signature.

Public Member Functions

 DtInteractionFactory (DtExerciseConn *exConn)
 constructor
virtual ~DtInteractionFactory ()
 destructor
virtual DtInteractioncreateInteraction (RTI::InteractionClassHandle handle, const RTI::ParameterHandleValueMap &pairMap)
 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.
DtInteractionFactoryoperator= (const DtInteractionFactory &orig)
 assignment operator - not implemented.

Protected Attributes

InterClassHandleToCreatorMap myCreators
DtExerciseConnmyExConn

Detailed Description

Instances of DtInteractionFactory are used to create derived DtInteractions based on Interaction Class.


Member Typedef Documentation

Interaction creation function signature.

typedef std::map<RTI::InteractionClassHandle, DtInteractionCreator> DtInteractionFactory::InterClassHandleToCreatorMap [protected]

Constructor & Destructor Documentation

constructor

destructor

copy constructor - not implemented.


Member Function Documentation

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::ParameterHandleValueMap &  pairMap 
) [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.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)