[C++-sig] exclude an entire class with pyste ?
dominique.devriese at student.kuleuven.ac.be
Tue Apr 22 01:07:26 CEST 2003
I'm working on playing around with embedding python in my application
using Boost.Python for exposing the API. This is going really great,
I hadn't imagined it being so easy. Boost.python is certainly
somewhere at the top in my list of great libraries ( together with
most of the rest of Boost, actually :) ).
Anyway, I'd like to use pyste for generating some of the relevant
code. I have a header containing a lot of free functions like
Point calcCircleCenter( const Point& a, const Point& b,const Point& c );
and it would be really convenient to use pyste here, cause there are a
*lot* of these functions.
However, there is the problem that in front of the header, I have
class declarations like
and when pyste sees this, it outputs code like
class_< SomeClass, boost::noncopyable >("SomeClass", no_init)
which is not what I want, since SomeClass is in another header, and
also being exported to python. So my question basically is, is there
a way to exclude an entire class from the pyste output, since
ch = AllFromHeader( "some_header.h" );
exclude( ch.SomeClass );
doesn't seem to do the trick..
A tall, dark stranger will have more fun than you.
More information about the Cplusplus-sig