echelon
0.8.0
|
A handle to an echelon attribute. More...
#include <attribute.hpp>
Public Member Functions | |
attribute ()=default | |
Initializes the handle with its null state. | |
type | datatype () const |
The value type of the attribute. | |
native_handle_type | native_handle () const |
The underlying HDF5 low-level handle. | |
operator bool () const | |
Tests the validity of the handle. | |
Friends | |
template<typename T > | |
void | operator<<= (attribute &attr, const T &value) |
Writes the content of a variable into the attribute. More... | |
template<typename T > | |
void | operator<<= (T &value, const attribute &attr) |
Reads the content of an attribute into a variable. More... | |
A handle to an echelon attribute.
|
friend |
Writes the content of a variable into the attribute.
T | Type of the written value. |
attr | attribute, to which the value is written |
value | value, which is written into the attribute |
|
friend |
Reads the content of an attribute into a variable.
T | Type of the read value. |
value | value, which is read from the attribute |
attr | attribute, from which the value is read |