[C++-sig] passing wrapped c++ objects to boost wrapped function
Son, Serguei
serguei.son at citigroup.com
Mon Jan 8 20:07:29 CET 2007
Or do your own wrapper of OEChem with Boost.Python! Then you can get your C++ object by calling extract.
-----Original Message-----
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org]On
Behalf Of Greg Landrum
Sent: Monday, January 08, 2007 1:29 PM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] passing wrapped c++ objects to boost wrapped
function
On 1/4/07, Kim Branson <kim.branson at gmail.com> wrote:
>
> i have python bindings for a library, and i can create python wrapped
> instances of this object in python
>
> mol = OEMol()
> in python this is a proxy of the C++ instance.
> <openeye.oechem.OEMol; proxy of C++ OEMolWrapper instance at
> _0030dfd0_p_OEMolWrapper>
>
> I have other c++ code that uses an OEMol interface like so.
>
Since OpenEye has provided you with a SWIG wrapper for OEChem,
wouldn't it be easier to just use SWIG to wrap your functionality as
well?
It seems like that would be the straightforward way to avoid a massive
pain in the neck.
-greg
_______________________________________________
C++-sig mailing list
C++-sig at python.org
http://mail.python.org/mailman/listinfo/c++-sig
More information about the Cplusplus-sig
mailing list