11 #ifndef FACTORY_OBJECT_H_
12 # define FACTORY_OBJECT_H_
15 # include "Graphics/i_object.h"
56 bool Contains(std::string
const& key)
const;
59 static std::map<std::string, IObject *> _map;
bool Contains(std::string const &key) const
Search if an object is contained in the factory.
Definition: factory_object.cc:67
FactoryObjects(void)
Constructor.
Definition: factory_object.cc:27
Define the interface of an object.
Definition: i_object.h:24
Define a factory of objects that will fill the environment in term of the environment file...
Definition: factory_object.h:23
Contains all the class that define the graphic environment.
IObject * Create(std::string const &key) const
Create a new object of the given key.
Definition: factory_object.cc:57
static void Register(std::string const &key, IObject *obj)
Register a new object in the factory.
Definition: factory_object.cc:38
~FactoryObjects(void)
Destructor.
Definition: factory_object.cc:31
static void DeleteAll(void)
Delete all the objects that have been registered in the factory.
Definition: factory_object.cc:51