![]() |
VR-Link API Documentation for HLA 4
|
Instances of DtHlaObjectFactory are used to create HLA objects. More...
Inheritance diagram for DtHlaObjectFactory:
Collaboration diagram for DtHlaObjectFactory:Public Types | |
| typedef DtHlaObject *(* | DtHlaObjectCreator )(DtExerciseConn *conn, RTI::ObjectHandle id, const char *name, DtObjClassDesc &cDesc, bool reflecting) |
| HLA object creation function signature. More... | |
Public Member Functions | |
| DtHlaObjectFactory (DtExerciseConn *conn) | |
| constructor More... | |
| virtual | ~DtHlaObjectFactory () |
| destructor More... | |
| virtual DtHlaObject * | createHlaObject (RTI::ObjectClassHandle handle, RTI::ObjectHandle id, const char *name, bool reflecting) |
| Create the specified object. More... | |
| virtual DtHlaObjectCreator | addCreator (RTI::ObjectClassHandle handle, DtHlaObjectCreator creator) |
| Add an object creation function to the factory. More... | |
| virtual DtHlaObjectCreator | creator (RTI::ObjectClassHandle handle) |
| Returns the creator currently registered for the given object class. More... | |
Protected Types | |
| typedef std::map < RTI::ObjectClassHandle, DtHlaObjectCreator > | ObjClassHandleToCreatorMap |
| A list that maps class handles (DtIntHashKeys) to DtHlaObjectCreators. More... | |
Protected Attributes | |
| ObjClassHandleToCreatorMap | myCreators |
| DtExerciseConn * | myConn |
Private Member Functions | |
| DtHlaObjectFactory (const DtHlaObjectFactory &orig) | |
| copy constructor - not implemented More... | |
| DtHlaObjectFactory & | operator= (const DtHlaObjectFactory &orig) |
| assignment operator - not implemented More... | |
Instances of DtHlaObjectFactory are used to create HLA objects.
| typedef DtHlaObject*(* DtHlaObjectFactory::DtHlaObjectCreator)(DtExerciseConn *conn, RTI::ObjectHandle id, const char *name, DtObjClassDesc &cDesc, bool reflecting) |
HLA object creation function signature.
|
protected |
A list that maps class handles (DtIntHashKeys) to DtHlaObjectCreators.
| DtHlaObjectFactory::DtHlaObjectFactory | ( | DtExerciseConn * | conn | ) |
constructor
|
virtual |
destructor
|
private |
copy constructor - not implemented
|
virtual |
Add an object creation function to the factory.
The function must return a new'ed object which will be deleted by the user. Returns any previous object creation function which was replaced by the add.
|
virtual |
Create the specified object.
Note: Caller is responsible for deleting. Returns NULL if object creation function is not in the factory.
|
virtual |
Returns the creator currently registered for the given object class.
|
private |
assignment operator - not implemented
|
protected |
|
protected |