GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ls-hdf5.cc File Reference
#include <cctype>
#include <iomanip>
#include <istream>
#include <limits>
#include <ostream>
#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 "errwarn.h"
#include "interpreter.h"
#include "interpreter-private.h"
#include "load-save.h"
#include "oct-hdf5.h"
#include "ovl.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.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"
Include dependency graph for ls-hdf5.cc:

Go to the source code of this file.

Functions

bool add_hdf5_data (octave_hdf5_id loc_id, const octave_value &tc, const std::string &name, const std::string &doc, bool mark_global, bool save_as_floats)
 
static hid_t check_hdf5_id_value (octave_hdf5_id id, const char *who)
 
octave_hdf5_err hdf5_add_attr (octave_hdf5_id loc_id, const char *attr_name)
 
octave_hdf5_err hdf5_add_scalar_attr (octave_hdf5_id loc_id, octave_hdf5_id type_id, const char *attr_name, void *buf)
 
bool hdf5_check_attr (octave_hdf5_id loc_id, const char *attr_name)
 
bool hdf5_get_scalar_attr (octave_hdf5_id loc_id, octave_hdf5_id type_id, const char *attr_name, void *buf)
 
octave_hdf5_err hdf5_h5g_iterate (octave_hdf5_id loc_id, const char *name, int *idx, void *operator_data)
 
octave_hdf5_id hdf5_make_complex_type (octave_hdf5_id num_type)
 
static hid_t hdf5_make_range_type (hid_t num_type)
 
octave_hdf5_err hdf5_read_next_data (octave_hdf5_id group_id, const char *name, void *dv)
 
static herr_t hdf5_read_next_data_internal (hid_t group_id, const char *name, void *dv)
 
bool hdf5_types_compatible (octave_hdf5_id t1, octave_hdf5_id t2)
 
int load_hdf5_empty (octave_hdf5_id loc_id, const char *name, dim_vector &d)
 
static herr_t load_inline_fcn (hid_t loc_id, const char *name, octave_value &retval)
 
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_global, bool save_as_floats)
 
int save_hdf5_empty (octave_hdf5_id loc_id, const char *name, const dim_vector &d)
 
octave_hdf5_id save_type_to_hdf5 (save_type st)
 

Function Documentation

◆ add_hdf5_data()

◆ check_hdf5_id_value()

static hid_t check_hdf5_id_value ( octave_hdf5_id  id,
const char *  who 
)
static

Definition at line 79 of file ls-hdf5.cc.

References error(), and max().

Referenced by hdf5_h5g_iterate(), and hdf5_read_next_data().

◆ hdf5_add_attr()

octave_hdf5_err hdf5_add_attr ( octave_hdf5_id  loc_id,
const char *  attr_name 
)

Definition at line 1164 of file ls-hdf5.cc.

References err_disabled_feature(), and octave_H5P_DEFAULT.

Referenced by add_hdf5_data(), and save_hdf5_empty().

◆ hdf5_add_scalar_attr()

octave_hdf5_err hdf5_add_scalar_attr ( octave_hdf5_id  loc_id,
octave_hdf5_id  type_id,
const char *  attr_name,
void *  buf 
)

Definition at line 1205 of file ls-hdf5.cc.

References err_disabled_feature(), and octave_H5P_DEFAULT.

Referenced by xsave_hdf5().

◆ hdf5_check_attr()

bool hdf5_check_attr ( octave_hdf5_id  loc_id,
const char *  attr_name 
)

Definition at line 300 of file ls-hdf5.cc.

References err_disabled_feature(), and octave_H5E_DEFAULT.

Referenced by hdf5_read_next_data_internal(), and load_hdf5_empty().

◆ hdf5_get_scalar_attr()

bool hdf5_get_scalar_attr ( octave_hdf5_id  loc_id,
octave_hdf5_id  type_id,
const char *  attr_name,
void *  buf 
)

Definition at line 347 of file ls-hdf5.cc.

References err_disabled_feature(), and octave_H5E_DEFAULT.

Referenced by octave_legacy_range::load_hdf5().

◆ hdf5_h5g_iterate()

◆ hdf5_make_complex_type()

◆ hdf5_make_range_type()

static hid_t hdf5_make_range_type ( hid_t  num_type)
static

Definition at line 430 of file ls-hdf5.cc.

Referenced by hdf5_read_next_data_internal().

◆ hdf5_read_next_data()

octave_hdf5_err hdf5_read_next_data ( octave_hdf5_id  group_id,
const char *  name,
void *  dv 
)

◆ hdf5_read_next_data_internal()

◆ hdf5_types_compatible()

◆ load_hdf5_empty()

◆ load_inline_fcn()

static herr_t load_inline_fcn ( hid_t  loc_id,
const char *  name,
octave_value retval 
)
static

◆ make_valid_identifier()

static std::string make_valid_identifier ( const std::string &  nm)
static

Definition at line 242 of file ls-hdf5.cc.

Referenced by hdf5_read_next_data_internal().

◆ read_hdf5_data()

std::string read_hdf5_data ( std::istream &  is,
const std::string &  filename,
bool &  global,
octave_value tc,
std::string &  doc,
const string_vector argv,
int  argv_idx,
int  argc 
)

◆ save_hdf5_data()

bool save_hdf5_data ( std::ostream &  os,
const octave_value tc,
const std::string &  name,
const std::string &  doc,
bool  mark_global,
bool  save_as_floats 
)

◆ save_hdf5_empty()

◆ save_type_to_hdf5()