[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] Getter/Setter as Property with Pyste
From:       achim.domma () syynx ! de (Achim Domma)
Date:       2004-06-27 12:02:45
Message-ID: BPEBKLCAPNMHJOAHJOIHIELKCBAA.achim.domma () syynx ! de
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic