logo       

Re: How to emove prefix from classes?: msg#00195

programming.swig

Subject: Re: How to emove prefix from classes?

Raghavendra Chandrashekara wrote:
I have a lot of classes which start with a certain prefix. For example,

ftkClass1
ftkClass2
...

Is there a way of renaming the classes in the wrapper library (I am using Python) so that they become:

ftk.Class1
ftk.Class2

In wxruby-swig, I have to do a bunch of post-processing of the .cpp files that swig creates. My post-processors are written in Ruby, which makes them fairly easy to maintain.

One of the operations is to convert all wxAbc classes to be Wx::Abc (where in Ruby, Wx is the module and Abc is the class), and another is to convert all CamelCaseMethodNames to be ruby_style_method_names. Essentially, those post-process steps are glorified global replacers.

Kevin
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise