[Dcmlib] static ::New() / Factory

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Wed Nov 9 15:24:03 CET 2005


Mathieu Malaterre wrote:

> Benoit,
>
>     So what is the deal with New ? What purpose does it do (except Yet 
> Another API change) ? I have to explain why `we' needed that to the 
> ITK group ?

Benoit is not at the Lab this week.
I was very proud to do something 'ITK like'.
I though he discussed with you before.
:-(
JPRx

>
>     Also one thing that I hate is the complete inconsistency:
>
> new gdcm::SerieHelper()
> new gdcm::ArgMgr(argc, argv)
> new gdcm::Validator();
>
> but
>
> gdcm::FileHelper::New(e1);
> gdcm::File::New( );
>
>
> Also most of the internals of gdcm still use `new'. So why did you 
> introduce the ugly New static function ?
>
> Thanks for comments,
> Mathieu
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>




More information about the Dcmlib mailing list