hdf5serie
2.0.0
HDF5 Serie
|
A scalar, vector or matrix attribute/dataset. More...
#include <simple.h>
Public Member Functions | |
void | write (const T &data) |
Write data. More... | |
T | read () |
Read data. More... | |
void | write (const string &data) |
string | read () |
void | write (const vector< string > &data) |
vector< string > | read () |
void | write (const vector< vector< string > > &data) |
vector< vector< string > > | read () |
Protected Member Functions | |
HDF5SERIE_CLASS (int dummy, HDF5SERIE_PARENTCLASS *parent_, const std::string &name_) | |
Constructor for opening or creating a attribute/dataset. More... | |
HDF5SERIE_CLASS (HDF5SERIE_PARENTCLASS *parent_, const std::string &name_) | |
void | close () override |
Private Attributes | |
hid_t | memDataTypeID |
ScopedHID | memDataSpaceID |
Friends | |
class | Container< HDF5SERIE_CONTAINERBASECLASS, HDF5SERIE_PARENTCLASS > |
A scalar, vector or matrix attribute/dataset.
A HDF5 attribute/dataset of a scalar a vector or a matrix of fixed size of type CTYPE. CTYPE can be one of the folling types.
The template type T is simple CTYPE for a scalar, std::vector<CTYPE> for a vector and std::vector<std::vector<CTYPE> > for a matrix.
A NOTE if using a vector-matrix-library: See class description of VectorSerie.
|
protected |
Constructor for opening or creating a attribute/dataset.
For a scalar value T=CTYPE: If create is true see create(), if create is false see open()
For a vector value T=std::vector<CTYPE>: The declaration of this function is HDF5SERIE_CLASS(const H5Object& parent, const std::string& name, int count=0) If count is not 0 see create(), if create is 0 see open()
For a matrix value T=std::vector<std::vector<CTYPE> >: The declaration of this function is HDF5SERIE_CLASS(const H5Object& parent, const std::string& name, int rows=0, int columns=0) If rows is not 0 and column is not 0 see create(), if rows and columns is 0 see open()
vector< vector< T > > HDF5SERIE_CLASS< T >::read |
Read data.
Read the data from the HDF5 file
void HDF5SERIE_CLASS< T >::write | ( | const T & | data | ) |
Write data.
Writes the data data to the HDF5 file