|
void | setDescription (const std::string &description) |
| Sets a description for the dataset. More...
|
|
void | append (const T data[], size_t size) |
| Append a data vector. More...
|
|
template<class DataType > |
void | append (const DataType &data) |
|
int | getRows () |
| Returns the number of rows in the dataset.
|
|
unsigned int | getColumns () |
| Returns the number of columns(=number of data elements) in the dataset.
|
|
void | getRow (int row, size_t size, T data[]) |
| Returns the data vector at row row The first row is 0. The last avaliable row ist getRows()-1. data points to an array of size elements of type T.
|
|
template<class DataType > |
void | getRow (const int row, DataType &data) |
|
std::vector< T > | getRow (const int row) |
|
void | getColumn (int column, size_t size, T data[]) |
| Returns the data vector at column column. More...
|
|
template<class DataType > |
void | getColumn (const int column, DataType &data) |
|
std::vector< T > | getColumn (const int row) |
|
std::string | getDescription () |
| Return the description for the dataset. More...
|
|
void | setColumnLabel (const std::vector< std::string > &columnLabel) |
|
std::vector< std::string > | getColumnLabel () |
| Returns the column labels. More...
|
|
void | append (const string data[], size_t size) |
|
void | getRow (const int row, size_t size, string data[]) |
|
void | getColumn (const int column, size_t size, string data[]) |
|
std::vector< hsize_t > | getExtentDims () |
|
template<class T > |
Creator< T > | createChildAttribute (const std::string &path) |
|
template<class T > |
T * | openChildAttribute (const std::string &path) |
|
Attribute * | openChildAttribute (const std::string &name_, ElementType *attributeType=nullptr, hid_t *type=nullptr) |
|
std::set< std::string > | getChildAttributeNames () |
|
bool | hasChildAttribute (const std::string &name_) |
|
GroupBase * | getParent () |
|
File * | getFile () |
|
std::string | getPath () |
|
hid_t | getID () |
| Note: use the returned hid_t only temporarily since it may get invalid, at least when File::enableSWMR is called.
|
|
std::string | getName () |
|
|
| VectorSerie (int dummy, GroupBase *parent_, const std::string &name_) |
|
| VectorSerie (GroupBase *parent_, const std::string &name_, int cols, int compression=File::getDefaultCompression(), int chunkSize=File::getDefaultChunkSize(), int cacheSize=File::getDefaultCacheSize()) |
|
void | close () override |
|
void | refresh () override |
|
void | flush () override |
|
| Dataset (GroupBase *parent_, const std::string &name_) |
|
| Dataset (int dummy, GroupBase *parent_, const std::string &name_) |
|
void | close () override |
|
void | refresh () override |
|
void | flush () override |
|
void | enableSWMR () override |
|
| Object (GroupBase *parent_, const std::string &name_) |
|
void | close () override |
|
void | refresh () override |
|
void | flush () override |
|
void | enableSWMR () override |
|
Object * | getFileAsObject () |
|
Object * | getAttrParent (const std::string &path, size_t pos) |
|
| Element (std::string name_) |
|
virtual void | close () |
|
virtual void | refresh () |
|
virtual void | flush () |
|
virtual void | enableSWMR () |
|
void | close () |
|
void | refresh () |
|
void | flush () |
|
void | enableSWMR () |
|
Creator< T > | createChild (const std::string &name_) |
|
T * | openChild (const std::string &name_) |
|
template<class T>
class H5::VectorSerie< T >
Serie of vectors.
A HDF5 dataset for reading and writing a serie of data vectors. The type of the elements of the vector (template type T) can be of:
- char
- signed char
- unsigned char
- short
- unsigned short
- int
- unsigned int
- long
- unsigned long
- long long
- unsigned long long
- float
- double
- long double
- std::string
The data is stored as a 2D array in the HDF5 file. Each row is onw data vector.
A note when using a vector-matrix-library: It is likly that the data is calculated by a vector-matrix-library. If so, and the vector object (of type T) of the library (e.g. fmatvec) has a size() member function, returning the size of the vector, and operator[](int i) returns for i=0 a reference to the first element and all other elements are store continously after the address of this element, then you can use the vector-object as parameter for append(const DataType &data).