|
Boost Users : |
From: cavok_at_[hidden]
Date: 2003-08-10 19:57:19
hi,
i'd like to do something like this:
-------------- CUT HERE --------------
#include <boost/python.hpp>
using namespace boost::python;
struct A
{
void f() { /* do something */ }
};
A a;
BOOST_PYTHON_MODULE(hello)
{
class_<A>("A")
.def("f", &A::f)
;
def_readwrite("a", a);
}
-------------- CUT HERE --------------
i don't see how to do it with boost.
any hint for a poor newbie?
thanks
dom
-----[ Domenico Andreoli, aka cavok
--[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net