BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
hdf5_tools.hpp File Reference
#include <cstring>
#include "stringtools.hpp"
#include "assert.hpp"
#include "hdf5_types.hpp"
#include "cl_Vector.hpp"
#include "cl_Matrix.hpp"
#include "cl_Cell.hpp"
Include dependency graph for hdf5_tools.hpp:

Go to the source code of this file.

Namespaces

namespace  belfem
 USER GUIDES:
namespace  belfem::hdf5

Functions

bool belfem::hdf5::dataset_exists (hid_t aLoc, const std::string &aLabel)
 test if a dataset exists ( tests for a link of that name; the link type is not checked )
bool belfem::hdf5::group_exists (hid_t aLoc, const std::string &aLabel)
 test if a group exists ( tests for a link of that name; the link type is not checked )
Cell< std::string > belfem::hdf5::get_groups (hid_t aLoc)
 list groups that exist in location
template<typename T>
bool belfem::hdf5::check_datatye_size ()
 this function returns true of both the HDF5 datatype and the passed datatype have the same size
template<typename T>
void belfem::hdf5::check_read_datatype (const hid_t aFileType, const std::string &aLabel)
 Guard for every read: the FILE datatype must be convertible into T.
template<typename T>
void belfem::hdf5::save_scalar_to_file (hid_t &aLoc, const std::string &aLabel, const T &aValue, herr_t &aStatus)
 saves a scalar value to a file file must be open
template<typename T>
void belfem::hdf5::load_scalar_from_file (hid_t &aLoc, const std::string &aLabel, T &aValue, herr_t &aStatus)
void belfem::hdf5::save_bool_to_file (hid_t &aFileID, const std::string &aLabel, const bool &aValue, herr_t &aStatus)
void belfem::hdf5::load_bool_from_file (hid_t &aFileID, const std::string &aLabel, bool &aValue, herr_t &aStatus)
void belfem::hdf5::save_string_to_file (hid_t &aFileID, const std::string &aLabel, const std::string &aValue, herr_t &aStatus)
void belfem::hdf5::load_string_from_file (hid_t &aFileID, const std::string &aLabel, std::string &aValue, herr_t &aStatus)
template<typename T>
void belfem::hdf5::save_array_to_file (hid_t &aLoc, const std::string &aLabel, const T *aData, const hsize_t &aLength, herr_t &aStatus)
hsize_t belfem::hdf5::get_array_size (hid_t &aFileID, const std::string &aLabel)
template<typename T>
void belfem::hdf5::load_array_from_file (hid_t &aLoc, const std::string &aLabel, T *aData, const hsize_t aLength, herr_t &aStatus)
template<typename T>
void belfem::hdf5::save_vector_to_file (hid_t &aLoc, const std::string &aLabel, const Vector< T > &aVector, herr_t &aStatus)
template<typename T>
void belfem::hdf5::load_vector_from_file (hid_t &aLoc, const std::string &aLabel, Vector< T > &aVector, herr_t &aStatus)
template<typename T>
void belfem::hdf5::save_matrix_to_file (hid_t &aLoc, const std::string &aLabel, const Matrix< T > &aMatrix, herr_t &aStatus, const bool aTranspose=false)
template<typename T>
void belfem::hdf5::load_matrix_from_file (hid_t &aLoc, const std::string &aLabel, Matrix< T > &aMatrix, herr_t &aStatus, const bool aTranspose=false)
void belfem::hdf5::save_strings_to_file (hid_t &aLoc, const std::string &aLabel, const Cell< string > &aCell, herr_t &aStatus)
void belfem::hdf5::load_strings_from_file (hid_t &aLoc, const std::string &aLabel, Cell< string > &aCell, herr_t &aStatus)
hid_t belfem::hdf5::open_group (const std::string &aLabel, hid_t aParent)
herr_t belfem::hdf5::close_group (hid_t aGroup)
string belfem::hdf5::create_tree (const Cell< string > &aTree, const string &aLabel)