Module: OMX::H5Types

Extended by:
FFI::Library
Defined in:
lib/OpenMatriX.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

.H5G_obj_tObject



87
88
89
90
# File 'lib/OpenMatriX.rb', line 87

def H5G_obj_t
  enum [:H5G_UNKNOWN, :H5G_GROUP, :H5G_DATASET, :H5G_TYPE, :H5G_LINK,
    :H5G_UDLINK, :H5G_RESERVED_5, :H5G_RESERVED_6, :H5G_RESERVED_7]
end

.H5T_C_S1Object



84
85
86
# File 'lib/OpenMatriX.rb', line 84

def H5T_C_S1
  :string
end

.h5t_class_tObject



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/OpenMatriX.rb', line 66

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



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

def hbool_t
  :uint
end

.herr_tObject



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

def herr_t
  :int
end

.hid_tObject



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

def hid_t
  :int
end

.hsize_tObject



63
64
65
# File 'lib/OpenMatriX.rb', line 63

def hsize_t
  :size_t
end

.htri_tObject



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

def htri_t
  :int
end

.size_tObject



94
95
96
# File 'lib/OpenMatriX.rb', line 94

def size_t
  :int
end

.time_tObject



91
92
93
# File 'lib/OpenMatriX.rb', line 91

def time_t
  :int
end