#include <src/core/ClassFactory.h>
Public Member Functions | |
BaseObject * | fabricate (BaseObject *creator) |
Creates and returns a new object of class T. | |
Static Public Member Functions | |
static bool | create (const std::string &name, bool bLoadable=true) |
Adds the ClassFactory to the Identifier of the same type and the Identifier to the Factory. | |
Private Member Functions | |
ClassFactory (const ClassFactory &factory) | |
ClassFactory () | |
virtual | ~ClassFactory () |
Static Private Member Functions | |
static T * | createNewObject (BaseObject *creator) |
Creates and returns a new object of class T; this is a wrapper for the new operator. |
orxonox::ClassFactory< T >::ClassFactory | ( | ) | [inline, private] |
orxonox::ClassFactory< T >::ClassFactory | ( | const ClassFactory< T > & | factory | ) | [inline, private] |
virtual orxonox::ClassFactory< T >::~ClassFactory | ( | ) | [inline, private, virtual] |
bool orxonox::ClassFactory< T >::create | ( | const std::string & | name, | |
bool | bLoadable = true | |||
) | [inline, static] |
Adds the ClassFactory to the Identifier of the same type and the Identifier to the Factory.
name | The name of the class | |
bLoadable | True if the class can be loaded through XML |
References orxonox::Factory::add(), and COUT.
T * orxonox::ClassFactory< T >::createNewObject | ( | BaseObject * | creator | ) | [inline, static, private] |
Creates and returns a new object of class T; this is a wrapper for the new operator.
References orxonox::KeyCode::T.
BaseObject * orxonox::ClassFactory< T >::fabricate | ( | BaseObject * | creator | ) | [inline, virtual] |
Creates and returns a new object of class T.
Implements orxonox::BaseFactory.