Re: [boost] Object Factory

2002-11-21 Thread Anthony Liguori
Christophe Meessen wrote: What I need is something like the factory method design pattern. It is a method that will construct different types of class instances according to some key information. It could be the class name string, an integer or anything else. It is trivial to implement using

Re: [boost] Object Factory

2002-11-21 Thread Christophe Meessen
Hello, I am sorry because I don't know of the other method referenced as Loki's factory. Regarding Anthony's proposal we should indeed make a difference between a factory and a metaclass or virtual constructor though both a tightly related. Don't misunderstand me. The proposal of Anthony is g

[boost] Object Factory

2002-11-19 Thread Christophe Meessen
Hello I recently met the need for an Object Factory. I according to some configuration information I would instantiate different type of objects derived from a same base class. So I wrote a small and light STL class that would do just what I wanted.It might be that such functionality could be u