Factory.h File Reference

Definition of the Factory and the BaseFactory class. More...

#include "CorePrereqs.h"
#include <map>
#include <string>

Namespaces

namespace  orxonox

Classes

class  orxonox::BaseFactory
 Base-class of ClassFactory. Has to be defined separate because of circular dependencies. More...
class  orxonox::Factory
 The Factory is used to map the name or the network ID of a class with its Identifier. More...


Detailed Description

Definition of the Factory and the BaseFactory class.

The Factory is a singleton, containing two maps to map either the name or the network ID of a class with the corresponding Identifier.

Usage: ID(classname) or ID(networkID) returns the corresponding Identifier.

BaseObject is the parent of ClassFactory which is defined in ClassFactory.h. It can't be defined in ClassFactory.h, because of circular dependencies.


Generated on Tue Jul 28 16:21:08 2009 for Orxonox by  doxygen 1.5.6