67 size_t size (std::string dataset)
const;
70 template <
typename T>
bool read (std::string dataset, T * buffer,
size_t length)
const;
73 template <
typename T>
bool write (std::string dataset, T
const * data,
size_t length);
76 bool valid ()
const {
return valid_; }
87 bool read_(std::string dataset,
void * buffer, hsize_t length, H5::AtomType dtype)
const;
90 bool write_(std::string dataset,
void const * buffer, hsize_t length, H5::AtomType dtype);
bool write(std::string dataset, T const *data, size_t length)
Write data to a valid file.
bool read(std::string dataset, T *buffer, size_t length) const
load data from a valid file.
size_t size(std::string dataset) const
Get size of the dataset of valid file.
Definition: hdffile.cpp:60
HDFFile(std::string filename, FileAccess flag)
Constructor from filename and access mode.
Definition: hdffile.cpp:22
~HDFFile()
Destructor.
Definition: hdffile.cpp:50
FileAccess
Access mode.
Definition: hdffile.h:53
HDF I/O management.
Definition: hdffile.h:43
bool valid() const
Check that the file is valid.
Definition: hdffile.h:76