[Pyrex] pyrexembed: How to make a method which returns a struct
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Mon May 22 15:35:59 CEST 2006
Hi Martin,
Martin Dobiasch wrote:
> I want to write a class with memberfunctions which returns structures
>
> My work:
>
[...]
>
> cdef struct RoomConnections:
> int n
> RoomConnection* rc
>
> cdef class ServerHandle:
> cdef void *thisptr #the this pointer for the class
[...]
> self.thisptr= NULL
> def getRoomConnections( self, rID ):
Use "cdef RoomConnections getRoomConnections(..."
Or look through the mail archives of this list to find other ways of doing the
thing you might be trying to do here.
Stefan
More information about the Pyrex
mailing list