Breaking the Last Dependency in C++?
- From: Joerg Simon <j_simon@xxxxxx>
- Date: Tue, 27 Sep 2005 09:40:13 +0200
Hi experts,
Short:
-----------------------------------------------------------------------
Is there an equivalent technique for a factory like one with refelction
in Java like in the article of Elisabeth Freeman and Eric Freeman on
Java.Net?
-----------------------------------------------------------------------
Article URL:
http://today.java.net/pub/a/today/2005/04/14/dependency.html
-------
On java.net there is an article from Elisabeth Freeman and Eric Freeman,
in advice of Erich Gamma claiming to "break the last dependency",
meaning that factories still are fixed to implementations (new ops) and
there can be something better. So they indroduced the idear of a factory
which uses Reflection and File-IO to create the factory-products.
That there are arguments that the code is slow/could be better... and so
on doesn't concern me, my question is, is there an Equivalent in C++?
Since I know Java quite well {kind of ;) }, but are, hm, intermediate in
C++ (I know what Templtes, Template-specializations and so are and some
of std c++ [one year working with it on the University], and have some
minor knowledge of boost [gregorian time and sharet pointer]), I don't
know if there is a technology in c++ which supports this kind of dynamic
creation.
<note>
Wasn't shure if I should post this here or comp.lang.c++, so please give
me feedpack if you think I should ask there and not here!
</note>
Thanks for any answers,
Jörg Simon
.
- Follow-Ups:
- Re: Breaking the Last Dependency in C++?
- From: Daniel Parker
- Re: Breaking the Last Dependency in C++?
- Prev by Date: Re: Factory pattern and building object
- Next by Date: Re: Looking for someone who has used No Magic's Magic Draw modeler
- Previous by thread: Factory pattern and building object
- Next by thread: Re: Breaking the Last Dependency in C++?
- Index(es):
Relevant Pages
|