Module: Hdf5::H5Types

Extended by:
FFI::Library
Defined in:
lib/hdf5.rb

Overview

A module containing functions for relating HDF5 types to the appropriate FFI symbol. At the moment these are set by hand, but at some point in the future they should be set dynamically by interrogation of the the library.

Class Method Summary collapse

Class Method Details

.h5t_class_tObject



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/hdf5.rb', line 63

def h5t_class_t
  enum [
    :h5t_no_class         , -1,  #*error                                      */
    :h5t_integer          , 0,   #*integer types                              */
    :h5t_float            , 1,   #*floating-point types                       */
    :h5t_time             , 2,   #*date and time types                        */
    :h5t_string           , 3,   #*character string types                     */
    :h5t_bitfield         , 4,   #*bit field types                            */
    :h5t_opaque           , 5,   #*opaque types                               */
    :h5t_compound         , 6,   #*compound types                             */
    :h5t_reference        , 7,   #*reference types                            */
    :h5t_enum    , 8, #*enumeration types                          */
    :h5t_vlen    , 9, #*variable-length types                      */
    :h5t_array           , 10,  #*array types                                */

    :h5t_nclasses                #*this must be last                          */
  ]
end

.hbool_tObject



54
55
56
# File 'lib/hdf5.rb', line 54

def hbool_t
  :uint
end

.herr_tObject



48
49
50
# File 'lib/hdf5.rb', line 48

def herr_t
  :int
end

.hid_tObject



51
52
53
# File 'lib/hdf5.rb', line 51

def hid_t
  :int
end

.hsize_tObject



60
61
62
# File 'lib/hdf5.rb', line 60

def hsize_t
  :size_t
end

.htri_tObject



57
58
59
# File 'lib/hdf5.rb', line 57

def htri_t
  :int
end