factory.hh File Reference

Factory Method generic implementation. More...

Include dependency graph for factory.hh:

Go to the source code of this file.

Namespaces

namespace  vcsn

Classes

class  DefaultFactoryError
class  DefaultFactoryError::Exception
class  Factory

Defines

#define factory_reg(factory, typeId, creationFunction)   factory.reg(typeId, creationFunction)
#define factory_create(factory, typeId)   factory.create_object(typeId)


Detailed Description

Factory Method generic implementation.

This code comes from the proposed implementation by Alexandrescu, in his "Modern C++ Design" book.

See also:
xml::converter, xml::Node if VCSN_USE_XML
Author:
Louis-Noël Pouchet <Louis-Noel.Pouchet@lrde.epita.fr>

Definition in file factory.hh.


Generated on Fri Jul 28 12:24:01 2006 for Vaucanson by  doxygen 1.4.6