|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-10-01 11:38:48
In C++, a struct is a class. Just wrap the struct as you would any class,
and return it by value. You can use the techniques described here
http://www.boost.org/libs/python/doc/special.html#getter_setter to provide
access to attributes.
HTH,
Dave
===================================================
David Abrahams, C++ library designer for hire
resume: http://users.rcn.com/abrahams/resume.html
C++ Booster (http://www.boost.org)
email: david.abrahams_at_[hidden]
===================================================
----- Original Message -----
From: "Ivan A. Vigasin" <vig_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, October 01, 2001 11:54 AM
Subject: [boost] Handling C structs in python
> Hello, All
>
> I need to pass C structs from C++ to python.
>
> What is the usual way of doing whis?
>
> Thanks
>
> Regards, Ivan <vig_at_[hidden]>
> ICQ: 22181170
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk