VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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]

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, DtDe &de)
 Attempt to create a parser for the given parser.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

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

virtual makVrv::DtModelParserFactory::~DtModelParserFactory ( )
virtual

DTOR.

makVrv::DtModelParserFactory::DtModelParserFactory ( )
protected

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

Member Function Documentation

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,
DtDe de 
)
virtual

Attempt to create a parser for the given parser.

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

Member Data Documentation

CreatorMap makVrv::DtModelParserFactory::myCreatorMap
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)