[Dcmlib] static ::New() / Factory

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Nov 9 14:49:47 CET 2005


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 ?

	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



More information about the Dcmlib mailing list