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 );
149 const string & aValue );
155 const char * aValue );
174 const sint & aValue );
183 const uint & aValue );
192 const luint & aValue );
213 const real & aValue );
222 const bool & aValue );
266 template<
typename T >
281 template<
typename T >
302 template<
typename T >
317 template<
typename T >
333 template<
typename T >
337 const bool aTranspose =
false )
350 template<
typename T >
354 const bool aTranspose =
false )
369 template<
typename T >
372 const string & aLabel,
384 template<
typename T >
387 const string & aLabel,
419 const string & aLabel,
void set_size(const size_t aSize)
Definition cl_Cell.hpp:189
size_t size() const
return the size of the Cell
Definition cl_Cell.hpp:181
T * data()
Definition cl_Cell.hpp:120
void save_data(const string &aLabel, const string &aValue)
save a string into the active group
Definition cl_HDF5.cpp:330
void load_data(const string &aLabel, Cell< T > &aCell)
Definition cl_HDF5.hpp:283
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:371
hid_t active_group() const
Definition cl_HDF5.cpp:538
hid_t create_group(const string &aLabel)
create a group and make it the active group
Definition cl_HDF5.cpp:158
void close_tree()
Definition cl_HDF5.cpp:302
void load_data(const string &aLabel, T *aArray, const index_t aMemorySize)
Definition cl_HDF5.hpp:386
void close()
close file
Definition cl_HDF5.cpp:132
void close_active_group()
Definition cl_HDF5.cpp:265
void load_data(const string &aLabel, Vector< T > &aVector)
Definition cl_HDF5.hpp:319
void load_data(const string &aLabel, string &aValue)
Definition cl_HDF5.cpp:358
void load_data(const string &aLabel, Matrix< T > &aMatrix, const bool aTranspose=false)
Definition cl_HDF5.hpp:352
void save_data(const string &aLabel, const Vector< T > &aVector)
Definition cl_HDF5.hpp:304
const string & tree() const
Definition cl_HDF5.cpp:546
hid_t select_group(const string &aLabel)
open an existing group and make it the active group
Definition cl_HDF5.cpp:221
void save_data(const string &aLabel, const Matrix< T > &aMatrix, const bool aTranspose=false)
Definition cl_HDF5.hpp:335
void save_data(const string &aLabel, const Cell< T > &aCell)
Definition cl_HDF5.hpp:268
herr_t & status()
Definition cl_HDF5.cpp:147
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:549
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:394
void save_strings_to_file(hid_t &aLoc, const std::string &aLabel, const Cell< string > &aCell, herr_t &aStatus)
Definition hdf5_tools.hpp:971
void load_strings_from_file(hid_t &aLoc, const std::string &aLabel, Cell< string > &aCell, herr_t &aStatus)
Definition hdf5_tools.hpp:1023
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:841
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:723
hsize_t get_array_size(hid_t &aFileID, const std::string &aLabel)
Definition hdf5_tools.cpp:264
void load_vector_from_file(hid_t &aLoc, const std::string &aLabel, Vector< T > &aVector, herr_t &aStatus)
Definition hdf5_tools.hpp:634
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:472
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