![]() |
VR-Forces 4.0.4 Class Documentation
|
Template for factory classes that are keyed of both a string and integer type. More...

Classes | |
| struct | DtStringAndIntKeyFactoryEntry |
Public Types | |
| typedef T_CreationType *(* | DtCreatorFcn )() |
Public Member Functions | |
| DtStringAndIntKeyFactory () | |
| constructor | |
| virtual | ~DtStringAndIntKeyFactory () |
| Destructor: deletes factory and any entries on the factory. | |
| virtual void | addCreatorFcn (const DtString &type, const int intType, DtCreatorFcn fcn) |
| Add a creator function to the factory. | |
| virtual int | intTypeForStringType (const DtString &stringType) const |
| virtual DtString | stringTypeForIntType (int intType) |
| virtual T_CreationType * | createItem (const DtString &type) const |
| Create and return a new instance of the type based on the creator functions and the type specified. | |
| virtual T_CreationType * | createItem (int type) const |
| Create and return a new instance of the type based on the creator functions and the type specified. | |
Static Public Member Functions | |
| static DtStringAndIntKeyFactory < T_CreationType > * | create () |
Protected Member Functions | |
| virtual DtString | creationTypeName () const |
Protected Attributes | |
| DtHashlist | myStringTypeHashlist |
| DtHashlist | myIntTypeHashlist |
Private Member Functions | |
| DtStringAndIntKeyFactory (const DtStringAndIntKeyFactory &orig) | |
| Not implemented. | |
| const DtStringAndIntKeyFactory & | operator= (const DtStringAndIntKeyFactory &orig) |
| Not implemented. | |
Template for factory classes that are keyed of both a string and integer type.
Classes instantiated from this template will build up a list of creator functions indexed both by integer type and string type, and can be created using either type index. Functions are also included to lookup the string-to-integer and integer-to-string mapping.
| typedef T_CreationType*(* DtStringAndIntKeyFactory< T_CreationType >::DtCreatorFcn)() |
| DtStringAndIntKeyFactory< T_CreationType >::DtStringAndIntKeyFactory | ( | ) |
constructor
| DtStringAndIntKeyFactory< T_CreationType >::DtStringAndIntKeyFactory | ( | const DtStringAndIntKeyFactory< T_CreationType > & | orig | ) | [private] |
Not implemented.
| virtual DtStringAndIntKeyFactory< T_CreationType >::~DtStringAndIntKeyFactory | ( | ) | [virtual] |
Destructor: deletes factory and any entries on the factory.
| const DtStringAndIntKeyFactory& DtStringAndIntKeyFactory< T_CreationType >::operator= | ( | const DtStringAndIntKeyFactory< T_CreationType > & | orig | ) | [private] |
Not implemented.
| virtual void DtStringAndIntKeyFactory< T_CreationType >::addCreatorFcn | ( | const DtString & | type, |
| const int | intType, | ||
| DtCreatorFcn | fcn | ||
| ) | [virtual] |
Add a creator function to the factory.
| virtual T_CreationType* DtStringAndIntKeyFactory< T_CreationType >::createItem | ( | const DtString & | type | ) | const [virtual] |
Create and return a new instance of the type based on the creator functions and the type specified.
Prints a warning if not found. See creationTypeName().
| virtual T_CreationType* DtStringAndIntKeyFactory< T_CreationType >::createItem | ( | int | type | ) | const [virtual] |
Create and return a new instance of the type based on the creator functions and the type specified.
Prints a warning if not found. See creationTypeName().
| virtual int DtStringAndIntKeyFactory< T_CreationType >::intTypeForStringType | ( | const DtString & | stringType | ) | const [virtual] |
| virtual DtString DtStringAndIntKeyFactory< T_CreationType >::stringTypeForIntType | ( | int | intType | ) | [virtual] |
| static DtStringAndIntKeyFactory<T_CreationType>* DtStringAndIntKeyFactory< T_CreationType >::create | ( | ) | [static] |
| virtual DtString DtStringAndIntKeyFactory< T_CreationType >::creationTypeName | ( | ) | const [protected, virtual] |
Reimplemented in DtSetDataRequestFactory, DtSimTaskFactory, DtSimTaskStateFactory, DtSimReportFactory, and DtAdminContentFactory.
DtHashlist DtStringAndIntKeyFactory< T_CreationType >::myStringTypeHashlist [protected] |
DtHashlist DtStringAndIntKeyFactory< T_CreationType >::myIntTypeHashlist [protected] |