Differences between revisions 1 and 2
Revision 1 as of 2007-08-21 21:32:33
Size: 46
Editor: gtang
Comment:
Revision 2 as of 2007-08-21 21:36:11
Size: 367
Editor: gtang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
How to Wrap my C++ class/function to Python? '''How to Wrap my C++ class/function to Python?'''

EMAN2 use boost.python to wrap C++ class/function to Python. All the wrapping code can be found in libpyEM directory. Initially, all the wrapping is done by Pyste. Because the lack of supporting, we dropped the pyste ans add the new wrapping code by us own. There are plenty of sample code in libpyEM to follow.

How to Wrap my C++ class/function to Python?

EMAN2 use boost.python to wrap C++ class/function to Python. All the wrapping code can be found in libpyEM directory. Initially, all the wrapping is done by Pyste. Because the lack of supporting, we dropped the pyste ans add the new wrapping code by us own. There are plenty of sample code in libpyEM to follow.

eman2BoostPyhton (last edited 2009-06-29 20:49:47 by gtang)