[C++-sig] Getter/Setter as Property with Pyste

Achim Domma achim.domma at syynx.de
Sun Jun 27 18:02:37 CEST 2004


Hi,

I try to generate Code with Pyste. The wrapped classes have lots of getter
and setter functions. The generated code looks like this:

.def("borderColor", (void (Magick::Image::*)(const
Magick::Color&) )&Magick::Image::borderColor)
.def("borderColor", (Magick::Color (Magick::Image::*)()
const)&Magick::Image::borderColor)

Is there a simple way to tell Pyste to generate an add_property call for
'borderColor' instead of the two functions?

regards,
Achim





More information about the Cplusplus-sig mailing list