![]() |
VR-Forces Developer's Guide
|
A Factory class for creating model parsers.

Public Member Functions | |
| virtual | ~DtModelParserFactory () |
| virtual void | registerParserCreator (const std::string &parserFormat, PrModelParserCreator *creator) |
| virtual void | destroyParserCreator (const std::string &parserFormat) |
| virtual DtModelParser * | createParser (const std::string &parser, DtDe &de) |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtModelParserFactory & | instance (DtDe &) |
Protected Types | |
| typedef std::map< std::string, PrModelParserCreator * > | CreatorMap |
Protected Member Functions | |
| DtModelParserFactory () | |
Protected Attributes | |
| CreatorMap | myCreatorMap |
|
protected |
|
virtual |
DTOR.
|
protected |
Protected CTOR use the static instance function to get an instance.
|
static |
Get an instance of the model parser factory.
|
virtual |
Register a model parser creator with a particular parsing format. The parsing format is a string which indicates what type of parsing is desired. Typically this will depend on the desired output and the input formatting. For example, stealthArticulatedModel indicates the parser will parse atributledModel data using the 'MAK stealth' specification.
|
virtual |
Destroys a model parser creator associated with the format.
|
virtual |
Attempt to create a parser for the given parser.
| 0 | if the parser was unable to be found. |
|
protected |