12#ifndef BELFEM_CL_HDF5_HPP
13#define BELFEM_CL_HDF5_HPP
47 hid_t mActiveGroup = -1;
49 string mActiveGroupLabel =
"";
55 bool mFileIsOpen =
false;
67 HDF5(
const string & aPath,
69 const bool aParallelMode=
false );
110 const hid_t aParent );
176 const string & aValue );
182 const char * aValue );
201 const sint & aValue );
210 const uint & aValue );
219 const luint & aValue );
240 const real & aValue );
249 const bool & aValue );
293 template<
typename T >
308 template<
typename T >
329 template<
typename T >
344 template<
typename T >
360 template<
typename T >
364 const bool aTranspose =
false )
377 template<
typename T >
381 const bool aTranspose =
false )
396 template<
typename T >
399 const string & aLabel,
411 template<
typename T >
414 const string & aLabel,
446 const string & aLabel,
void set_size(const size_t aSize)
New elements are value-initialized ( zero for arithmetic T, nullptr for pointers ).
Definition cl_Cell.hpp:199
size_t size() const
Definition cl_Cell.hpp:189
T * data()
Returns a borrowed pointer into contiguous storage, possibly nullptr when the Cell is empty ( test si...
Definition cl_Cell.hpp:129
void save_data(const string &aLabel, const string &aValue)
save a string into the active group
Definition cl_HDF5.cpp:313
void load_data(const string &aLabel, Cell< T > &aCell)
Definition cl_HDF5.hpp:310
HDF5(const string &aPath, const enum FileMode aMode=FileMode::NEW, const bool aParallelMode=false)
constructor
Definition cl_HDF5.cpp:22
void save_data(const string &aLabel, const T *aArray, const index_t aMemorySize)
Definition cl_HDF5.hpp:398
hid_t active_group() const
Definition cl_HDF5.cpp:507
hid_t create_group(const string &aLabel)
create a group and make it the active group
Definition cl_HDF5.cpp:148
void close_tree()
Definition cl_HDF5.cpp:287
void load_data(const string &aLabel, T *aArray, const index_t aMemorySize)
Definition cl_HDF5.hpp:413
void close()
close file
Definition cl_HDF5.cpp:122
void close_active_group()
Definition cl_HDF5.cpp:252
void load_data(const string &aLabel, Vector< T > &aVector)
Definition cl_HDF5.hpp:346
index_t number_of_open_objects() const
Number of objects open in this file other than the file itself: datasets, groups, named datatypes and...
Definition cl_HDF5.cpp:523
void load_data(const string &aLabel, string &aValue)
Definition cl_HDF5.cpp:339
void load_data(const string &aLabel, Matrix< T > &aMatrix, const bool aTranspose=false)
Definition cl_HDF5.hpp:379
void save_data(const string &aLabel, const Vector< T > &aVector)
Definition cl_HDF5.hpp:331
const string & tree() const
Definition cl_HDF5.cpp:515
hid_t select_group(const string &aLabel)
open an existing group and make it the active group
Definition cl_HDF5.cpp:211
void save_data(const string &aLabel, const Matrix< T > &aMatrix, const bool aTranspose=false)
Definition cl_HDF5.hpp:362
void save_data(const string &aLabel, const Cell< T > &aCell)
Definition cl_HDF5.hpp:295
herr_t & status()
Definition cl_HDF5.cpp:137
static index_t number_of_open_datatypes()
Number of datatype identifiers open in the whole library: those of every open file plus the transient...
Definition cl_HDF5.cpp:543
Dense column-major matrix.
Definition cl_BZ_Matrix.hpp:28
Column vector.
Definition cl_BZ_Vector.hpp:41
void save_vector_to_file(hid_t &aLoc, const std::string &aLabel, const Vector< T > &aVector, herr_t &aStatus)
Definition hdf5_tools.hpp:553
void save_array_to_file(hid_t &aLoc, const std::string &aLabel, const T *aData, const hsize_t &aLength, herr_t &aStatus)
Definition hdf5_tools.hpp:415
void save_strings_to_file(hid_t &aLoc, const std::string &aLabel, const Cell< string > &aCell, herr_t &aStatus)
Definition hdf5_tools.hpp:910
void load_strings_from_file(hid_t &aLoc, const std::string &aLabel, Cell< string > &aCell, herr_t &aStatus)
Definition hdf5_tools.hpp:956
void load_matrix_from_file(hid_t &aLoc, const std::string &aLabel, Matrix< T > &aMatrix, herr_t &aStatus, const bool aTranspose=false)
Definition hdf5_tools.hpp:808
void save_matrix_to_file(hid_t &aLoc, const std::string &aLabel, const Matrix< T > &aMatrix, herr_t &aStatus, const bool aTranspose=false)
Definition hdf5_tools.hpp:703
hsize_t get_array_size(hid_t &aFileID, const std::string &aLabel)
Definition hdf5_tools.cpp:223
void load_vector_from_file(hid_t &aLoc, const std::string &aLabel, Vector< T > &aVector, herr_t &aStatus)
Definition hdf5_tools.hpp:626
void load_array_from_file(hid_t &aLoc, const std::string &aLabel, T *aData, const hsize_t aLength, herr_t &aStatus)
Definition hdf5_tools.hpp:484
USER GUIDES:
Definition cl_Capacitor.cpp:16
int hsize_t
Definition hdf5_types.hpp:22
int hid_t
Definition hdf5_types.hpp:20
long long unsigned int lluint
Definition typedefs.hpp:34
long unsigned int luint
Definition typedefs.hpp:33
unsigned int uint
Definition typedefs.hpp:30
FileMode
Definition filetools.hpp:27
@ NEW
Definition filetools.hpp:28
uint32_t index_t
Definition typedefs.hpp:52
int sint
Definition typedefs.hpp:28
int herr_t
Definition hdf5_types.hpp:21
double real
Definition typedefs.hpp:36