Commit 32fd7b5a by Eric Coissac

rename falsly named files *.pyx in *.pxd ;-)

parent d1324618
/build/
/doxygen/
/build_dir.txt
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
cdef extern from "obidms.h" nogil:
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
OBIDMS_p obi_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
cdef class OBIDMS:
cdef OBIDMS_p pointer
\ No newline at end of file
cdef OBIDMS_p pointer
#from .capidms cimport *
cdef extern from *:
ctypedef char* const_char_p "const char*"
cdef extern from "obidms.h":
struct OBIDMS_t:
pass
ctypedef OBIDMS_t* OBIDMS_p
OBIDMS_p obi_create_dms(const_char_p name)
OBIDMS_p obi_open_dms(const_char_p name)
int obi_close_dms(OBIDMS_p dms)
#cython: language_level=3
from .capidms cimport *
cdef class OBIDMS:
cdef OBIDMS_p pointer
def __init__(self,name):
self.pointer = obi_create_dms(name)
self.pointer = obi_dms(name)
def __del__(self):
obi_close_dms(self.pointer)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment