[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Using SIP to wrap python objects
From: Frederick Polgardy Jr <polgardy () bodacion ! com>
Date: 2003-06-13 1:05:23
[Download RAW message or body]
On Thursday 12 June 2003 18:31, Rob Knapp wrote:
> I've found myself in a position where I need to present a python object
> to a C++ object, and it needs to look like a C++ object. The target
> application knows nothing of python.
>
> Would it be possible to create an object using SIP that I can inherit
> from and use the SIP api to convert into a CppPointer?
>
> Is there another/better way to achieve this?
Why not write what's called (in "Patterns" speak) an Adaptor class: one
which provides its own interface, and keeps track of the Python objects it
needs to use internally. What kind of interface is the target application
expecting?
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic