NamedFactory

Engine/source/core/util/tNamedFactory.h

A helper template class for registering creation methods to name strings.

More...

Protected Types

FactoryMap 
Type *(*
FactorySig )()

Protected Static Functions

Public Static Functions

add(const char * name, FactorySig func)

Add a new creation method to the factory.

Type *

Create an object instance of the first entry in the factory.

Type *
create(const char * name)

Create an object instance by name.

Detailed Description

A helper template class for registering creation methods to name strings.

Protected Types

typedef Map< String, FactorySig > FactoryMap 
typedef Type *(* FactorySig )()

Protected Static Functions

getFactoryMap()

Public Static Functions

add(const char * name, FactorySig func)

Add a new creation method to the factory.

create()

Create an object instance of the first entry in the factory.

create(const char * name)

Create an object instance by name.