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. Advertising

  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. Advertising

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. Douglas G

    simple word wrap problem not wrapping

    Douglas G, Aug 31, 2004, in forum: C Programming
    Replies:
    10
    Views:
    559
    Dave Thompson
    Sep 20, 2004
  2. Tom the Canuck

    Wrapping C code into a C++ object

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

    To wrap or not to wrap?

    Aaron Fude, May 8, 2008, in forum: Java
    Replies:
    12
    Views:
    706
    Chronic Philharmonic
    May 10, 2008
  4. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 22, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    233
    Art Werschulz
    Sep 22, 2003
  5. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 24, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    249
    Anno Siegel
    Sep 25, 2003
Loading...

Share This Page