From: Daniel B. <Ble...@ma...> - 2011-01-21 17:41:06
|
Hi, The SWIG 2.0 documentation mentions that matching rules used by %rename can be used in generic %feature commands, but I can¹t find documentation for this. I would like to apply a feature to matching methods in my Swig file: // Add some python code to any get* commands %feature("pythonappend",regexmatch$name="^get") %{ print ( ³GetMethod called² ) %} Is this possible? All the documentation is written like this: %feature(³pythonappend²) ³getFoo² %{ print ( ³GetMethod called² ) %} which would only apply the feature to ³getFoo². Thanks, -dan -- Daniel Blezek, PhD Medical Imaging Informatics Innovation Center P 127 or (77) 8 8886 T 507 538 8886 E ble...@ma... Mayo Clinic 200 First St. S.W. Harwick SL-44 Rochester, MN 55905 mayoclinic.org "It is more complicated than you think." -- RFC 1925 |