VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtModelParserFactory Class Reference

A Factory class for creating model parsers. More...

Inheritance diagram for makVrv::DtModelParserFactory:
Inheritance graph
[legend]

List of all members.

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 DtModelParsercreateParser (const std::string &parser, DtModel &model)
 Attempt to create a parser for the given parser.

Static Public Member Functions

static DtModelParserFactoryinstance (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

Detailed Description

A Factory class for creating model parsers.


Member Typedef Documentation

typedef std::map<std::string,PrModelParserCreator*> makVrv::DtModelParserFactory::CreatorMap [protected]

Constructor & Destructor Documentation

DTOR.

Protected CTOR use the static instance function to get an instance.


Member Function Documentation

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.

Return values:
0if the parser was unable to be found.

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)