wrapping C++, how to wrap an object?

T

Torsten Mohr

Hi,

i just read everything that i found for writing modules
and interfacing to C/C++.

I'd like to write some wrapper code for some C++ class.
For this i want to store an object of this class in
Python somehow.

how can i store a memory region (the object) in a Python
data type?


Best regards,
Torsten.
 
M

Mike Thompson

Torsten Mohr said:
Hi,

i just read everything that i found for writing modules
and interfacing to C/C++.

I'd like to write some wrapper code for some C++ class.
For this i want to store an object of this class in
Python somehow.

how can i store a memory region (the object) in a Python
data type?

AFAIK, you have 2 mainstream choices for wrapping C++:
1. Boost.Python - http://www.boost.org/libs/python/doc/
2. SWIG - http://www.swig.org/

I'm also aware of:
3. SIP - http://www.riverbankcomputing.co.uk/sip/docs/sipref.html

I use Boost.Python and have found it to be excellent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top