wrapping C++, how to wrap an object?

Discussion in 'Python' started by Torsten Mohr, Mar 7, 2004.

  1. Torsten Mohr

    Torsten Mohr Guest

    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.
     
    Torsten Mohr, Mar 7, 2004
    #1
    1. Advertisements

  2. "Torsten Mohr" <> wrote in message
    news:c2equb$4la$...
    > 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.

    --
    Mike
     
    Mike Thompson, Mar 7, 2004
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ygao

    unicode wrap unicode object?

    ygao, Apr 8, 2006, in forum: Python
    Replies:
    6
    Views:
    784
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 8, 2006
  2. Douglas G

    simple word wrap problem not wrapping

    Douglas G, Aug 31, 2004, in forum: C Programming
    Replies:
    10
    Views:
    681
    Dave Thompson
    Sep 20, 2004
  3. jon wayne
    Replies:
    9
    Views:
    991
    Jim Langston
    Sep 22, 2005
  4. Tom the Canuck

    Wrapping C code into a C++ object

    Tom the Canuck, Dec 3, 2005, in forum: C++
    Replies:
    10
    Views:
    1,599
    Jonathan Mcdougall
    Dec 5, 2005
  5. Aaron Fude

    To wrap or not to wrap?

    Aaron Fude, May 8, 2008, in forum: Java
    Replies:
    12
    Views:
    1,020
    Chronic Philharmonic
    May 10, 2008
  6. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 22, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    447
    Art Werschulz
    Sep 22, 2003
  7. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 24, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    441
    Anno Siegel
    Sep 25, 2003
  8. Vito Corleone

    How to wrap DBI $sth object?

    Vito Corleone, Mar 11, 2005, in forum: Perl Misc
    Replies:
    2
    Views:
    191
    A. Sinan Unur
    Mar 11, 2005
Loading...