3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 03:33:50 +01:00
dft_tools/pytriqs/pxd/h5.pxd
Olivier Parcollet f2c7d449cc First commit : triqs libs version 1.0 alpha1
for earlier commits, see TRIQS0.x repository.
2013-07-17 19:24:07 +02:00

18 lines
634 B
Cython

from libcpp.string cimport string as std_string
cdef extern from "<triqs/h5.hpp>" namespace "triqs::h5" :
#cdef extern from "<triqs/arrays/h5/group_or_file.hpp>" : #namespace "triqs::arrays::h5" :
cdef cppclass h5_group "triqs::h5::group" :
h5_group (int, bint)
h5_group ()
cdef extern from "<triqs/h5/h5_extractor.hpp>" namespace "triqs::h5" :
cdef cppclass h5_extractor "triqs::h5::h5_extractor" [T] :
h5_extractor()
T & operator()( h5_group &, std_string)
cdef inline h5_group make_h5_group (gr) :
import h5py
return h5_group (gr.id.id, type(gr) == h5py.highlevel.Group)