[C++-sig] passing wrapped c++ objects to boost wrapped function

Kim Branson kim.branson at stanford.edu
Fri Jan 5 01:45:24 CET 2007


On Jan 4, 2007, at 3:38 PM, Alex Mohr wrote:

>> The OEMol was not wrapped by me, but a vendor. I have the headers,
>> and the python bindings appear to be generated by swig.
>
> If that's true, then boost.python cannot "just know" how to get the  
> C++
> OEMol object out of a swig-generated wrapping Python object.
>
> You might be able to teach boost.python how to deal with OEMols by
> registering your own to_python and from_python conversions for OEMol
> which use swig to do the work.
>

is there a good source of documentation/examples on how to do this in  
Boost.
My knowledge of c++ templates is poor and it looks fairly complex.

cheers
Kim


> Alex
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig

Dr Kim Branson, PhD
Stanford University, Stanford, CA, USA
Department of Chemistry, Group of Prof. Dr. V. Pande
Postdoctoral Fellow: Folding at home - distributed computing
Clark Center, 94305-5080 Stanford, CA, phone: (650) 723 1817
email kim.branson at stanford.edu

"I cook with wine, sometimes i even add it to the food" -- WC Fields





More information about the Cplusplus-sig mailing list