|
Boost : |
From: Ivan A. Vigasin (vig_at_[hidden])
Date: 2001-10-01 12:34:49
On Mon, 1 Oct 2001 daveh-lists_at_[hidden] wrote:
> The simple solution is to just declare the members as read-write (see
> http://www.boost.org/libs/python/doc/special.html and look for
> def_read_write), unless they are pointers,
Thanks !
> then the solution will
> depend upon the context in which they are used.
I have C function, that accepts following struct as argument:
struct Field
{
unsigned id;
union
{
unsigned num;
const char *name;
};
unsigned type;
void *value; // pointer to data
unsigned MFSize; // size of data
unsigned flags;
};
I want to be able to use it from python.
What it is possible to do with union and pointers. Compiler want's accept it.
Regards, Ivan <vig_at_[hidden]>
ICQ: 22181170
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk