![]() |
VR-Forces 4.0.4 Class Documentation
|
A Factory class for creating model parsers. More...

Public Member Functions | |
| virtual | ~DtModelParserFactory () |
| DTOR. | |
| virtual void | registerParserCreator (const std::string &parserFormat, PrModelParserCreator *creator) |
| Register a model parser creator with a particular parsing format. | |
| virtual void | destroyParserCreator (const std::string &parserFormat) |
| Destroys a model parser creator associated with the format. | |
| virtual DtModelParser * | createParser (const std::string &parser, DtModel &model) |
| Attempt to create a parser for the given parser. | |
Static Public Member Functions | |
| static DtModelParserFactory & | instance (DtDe &) |
| Get an instance of the model parser factory. | |
Protected Types | |
| typedef std::map< std::string, PrModelParserCreator * > | CreatorMap |
Protected Member Functions | |
| DtModelParserFactory () | |
| Protected CTOR use the static instance function to get an instance. | |
Protected Attributes | |
| CreatorMap | myCreatorMap |
A Factory class for creating model parsers.
typedef std::map<std::string,PrModelParserCreator*> makVrv::DtModelParserFactory::CreatorMap [protected] |
| virtual makVrv::DtModelParserFactory::~DtModelParserFactory | ( | ) | [virtual] |
DTOR.
| makVrv::DtModelParserFactory::DtModelParserFactory | ( | ) | [protected] |
Protected CTOR use the static instance function to get an instance.
| static DtModelParserFactory& makVrv::DtModelParserFactory::instance | ( | DtDe & | ) | [static] |
Get an instance of the model parser factory.
| virtual void makVrv::DtModelParserFactory::registerParserCreator | ( | const std::string & | parserFormat, |
| PrModelParserCreator * | creator | ||
| ) | [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 void makVrv::DtModelParserFactory::destroyParserCreator | ( | const std::string & | parserFormat | ) | [virtual] |
Destroys a model parser creator associated with the format.
| virtual DtModelParser* makVrv::DtModelParserFactory::createParser | ( | const std::string & | parser, |
| DtModel & | model | ||
| ) | [virtual] |
Attempt to create a parser for the given parser.
| 0 | if the parser was unable to be found. |
CreatorMap makVrv::DtModelParserFactory::myCreatorMap [protected] |