GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cfloat>
#include <cstring>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include "byte-swap.h"
#include "data-conv.h"
#include "file-ops.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-time.h"
#include "quit.h"
#include "str-vec.h"
#include "oct-locbuf.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "load-save.h"
#include "oct-obj.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "pt-exp.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "dMatrix.h"
#include "ov-lazy-idx.h"
#include "ls-utils.h"
#include "ls-hdf5.h"
Go to the source code of this file.
Macros | |
#define | HAVE_HDF5_INT2FLOAT_CONVERSIONS 0 |
Functions | |
bool | add_hdf5_data (hid_t loc_id, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_as_global, bool save_as_floats) |
herr_t | hdf5_add_attr (hid_t loc_id, const char *attr_name) |
herr_t | hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, const char *attr_name, void *buf) |
bool | hdf5_check_attr (hid_t loc_id, const char *attr_name) |
bool | hdf5_get_scalar_attr (hid_t loc_id, hid_t type_id, const char *attr_name, void *buf) |
hid_t | hdf5_make_complex_type (hid_t num_type) |
herr_t | hdf5_read_next_data (hid_t group_id, const char *name, void *dv) |
bool | hdf5_types_compatible (hid_t t1, hid_t t2) |
int | load_hdf5_empty (hid_t loc_id, const char *name, dim_vector &d) |
static std::string | make_valid_identifier (const std::string &nm) |
std::string | read_hdf5_data (std::istream &is, const std::string &, bool &global, octave_value &tc, std::string &doc, const string_vector &argv, int argv_idx, int argc) |
bool | save_hdf5_data (std::ostream &os, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_as_global, bool save_as_floats) |
int | save_hdf5_empty (hid_t loc_id, const char *name, const dim_vector d) |
#define HAVE_HDF5_INT2FLOAT_CONVERSIONS 0 |
Definition at line 98 of file ls-hdf5.cc.
bool add_hdf5_data | ( | hid_t | loc_id, |
const octave_value & | tc, | ||
const std::string & | name, | ||
const std::string & | doc, | ||
bool | mark_as_global, | ||
bool | save_as_floats | ||
) |
Definition at line 863 of file ls-hdf5.cc.
References error(), octave_value::full_value(), hdf5_add_attr(), octave_value::is_diag_matrix(), octave_value::is_perm_matrix(), octave_value::save_hdf5(), octave_lazy_index::static_type_id(), octave_value::type_id(), and octave_value::type_name().
Referenced by octave_struct::save_hdf5(), octave_fcn_handle::save_hdf5(), octave_cell::save_hdf5(), octave_class::save_hdf5(), octave_scalar_struct::save_hdf5(), and save_hdf5_data().
herr_t hdf5_add_attr | ( | hid_t | loc_id, |
const char * | attr_name | ||
) |
Definition at line 663 of file ls-hdf5.cc.
Referenced by add_hdf5_data(), and save_hdf5_empty().
Definition at line 698 of file ls-hdf5.cc.
Referenced by octave_range::save_hdf5().
Definition at line 131 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), and load_hdf5_empty().
Definition at line 172 of file ls-hdf5.cc.
Referenced by octave_range::load_hdf5().
hid_t hdf5_make_complex_type | ( | hid_t | num_type | ) |
Definition at line 227 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), octave_sparse_complex_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_float_complex::load_hdf5(), octave_complex::load_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_float_complex_matrix::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_float_complex::save_hdf5(), and octave_complex::save_hdf5().
Definition at line 248 of file ls-hdf5.cc.
References d, hdf5_callback_data::doc, error(), hdf5_callback_data::global, hdf5_check_attr(), hdf5_make_complex_type(), hdf5_types_compatible(), octave_value::load_hdf5(), octave_value_typeinfo::lookup_type(), make_valid_identifier(), hdf5_callback_data::name, OCTAVE_LOCAL_BUFFER, hdf5_callback_data::tc, valid_identifier(), and warning().
Referenced by octave_struct::load_hdf5(), octave_fcn_handle::load_hdf5(), octave_cell::load_hdf5(), octave_class::load_hdf5(), octave_scalar_struct::load_hdf5(), and read_hdf5_data().
bool hdf5_types_compatible | ( | hid_t | t1, |
hid_t | t2 | ||
) |
Definition at line 106 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data(), octave_sparse_complex_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_float_complex::load_hdf5(), octave_complex::load_hdf5(), and octave_range::load_hdf5().
int load_hdf5_empty | ( | hid_t | loc_id, |
const char * | name, | ||
dim_vector & | d | ||
) |
Definition at line 785 of file ls-hdf5.cc.
References d, H5T_NATIVE_IDX, hdf5_check_attr(), OCTAVE_LOCAL_BUFFER, and dim_vector::resize().
Referenced by octave_base_int_matrix< T >::load_hdf5(), octave_sparse_bool_matrix::load_hdf5(), octave_sparse_complex_matrix::load_hdf5(), octave_sparse_matrix::load_hdf5(), octave_float_complex_matrix::load_hdf5(), octave_char_matrix_str::load_hdf5(), octave_complex_matrix::load_hdf5(), octave_cell::load_hdf5(), octave_float_matrix::load_hdf5(), octave_bool_matrix::load_hdf5(), and octave_matrix::load_hdf5().
|
static |
Definition at line 75 of file ls-hdf5.cc.
Referenced by hdf5_read_next_data().
std::string read_hdf5_data | ( | std::istream & | is, |
const std::string & | , | ||
bool & | global, | ||
octave_value & | tc, | ||
std::string & | doc, | ||
const string_vector & | argv, | ||
int | argv_idx, | ||
int | argc | ||
) |
Definition at line 585 of file ls-hdf5.cc.
References hdf5_fstreambase::current_item, d, hdf5_callback_data::doc, hdf5_fstreambase::file_id, hdf5_callback_data::global, hdf5_read_next_data(), glob_match::match(), hdf5_callback_data::name, and hdf5_callback_data::tc.
Referenced by do_load().
bool save_hdf5_data | ( | std::ostream & | os, |
const octave_value & | tc, | ||
const std::string & | name, | ||
const std::string & | doc, | ||
bool | mark_as_global, | ||
bool | save_as_floats | ||
) |
Definition at line 947 of file ls-hdf5.cc.
References add_hdf5_data(), and hdf5_fstreambase::file_id.
Referenced by do_save().
int save_hdf5_empty | ( | hid_t | loc_id, |
const char * | name, | ||
const dim_vector | d | ||
) |
Definition at line 736 of file ls-hdf5.cc.
References d, H5T_NATIVE_IDX, hdf5_add_attr(), dim_vector::length(), and OCTAVE_LOCAL_BUFFER.
Referenced by octave_base_int_matrix< T >::save_hdf5(), octave_sparse_bool_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), octave_float_complex_matrix::save_hdf5(), octave_char_matrix_str::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_cell::save_hdf5(), octave_float_matrix::save_hdf5(), octave_bool_matrix::save_hdf5(), and octave_matrix::save_hdf5().