Object Factories

David Gobbi dgobbi at irus.rri.on.ca
Tue Oct 12 10:44:42 EDT 1999


On Tue, 12 Oct 1999, Bill Hoffman wrote:

> That reminds me.  I have two perl scripts that can be used to convert New 
> methods.

Thanks.  I just converted my classes with them, and it was quick &
painless.

 - David

--David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

 
> remove_new_h_impl.pl -- removes the inline implementation of New from the 
> .h file.
> add_new_impl_c.pl -- add an implementation to the .cxx file for a class.
> 
> The usage is a bit strange, but if you have a lot of files it is worth it.
> The best way to describe the usage is with an example:
> 
> cd common
> mkdir convert
> cd convert
> cp ../*.h .
> perl /path/to/remove_new_h_impl.pl  *.h
> This will edit the .h files in place
> perl /path/to/add_new_impl_c.pl ../*.cxx
> This will create new .cxx files in the current directory copying the .cxx 
> file from ...
> cp *.cxx *.h ..
> 
> 
> At 06:59 PM 10/11/99 -0400, David Gobbi wrote:
> >[Snip]
> >In any case, it looks like I have a few VTK classes to bring
> >up to date...
> >
> >  - David
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list