28 friend class Container<HDF5SERIE_CONTAINERBASECLASS, HDF5SERIE_PARENTCLASS>;
31 ScopedHID memDataSpaceID;
48 HDF5SERIE_CLASS(
int dummy, HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_);
49 HDF5SERIE_CLASS(HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_);
61 void write(
const T& data);
69 #ifdef HDF5SERIE_DATASETTYPE
70 void setDescription(
const std::string &desc) {
71 SimpleAttribute<std::string> *a=createChildAttribute<SimpleAttribute<std::string> >(
"Description")();
74 std::string getDescription() {
75 SimpleAttribute<std::string> *a=openChildAttribute<SimpleAttribute<std::string> >(
"Description");
83 friend class Container<HDF5SERIE_CONTAINERBASECLASS, HDF5SERIE_PARENTCLASS>;
86 ScopedHID memDataSpaceID;
89 HDF5SERIE_CLASS(
int dummy, HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_);
90 HDF5SERIE_CLASS(HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_,
int size_);
95 void write(
const std::vector<T>& data);
96 std::vector<T>
read();
97 #ifdef HDF5SERIE_DATASETTYPE
98 void setDescription(
const std::string &desc) {
99 SimpleAttribute<std::string> *a=createChildAttribute<SimpleAttribute<std::string> >(
"Description")();
102 std::string getDescription() {
103 SimpleAttribute<std::string> *a=openChildAttribute<SimpleAttribute<std::string> >(
"Description");
111 friend class Container<HDF5SERIE_CONTAINERBASECLASS, HDF5SERIE_PARENTCLASS>;
114 ScopedHID memDataSpaceID;
118 HDF5SERIE_CLASS(
int dummy, HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_);
119 HDF5SERIE_CLASS(HDF5SERIE_PARENTCLASS *parent_,
const std::string& name_,
int rows_,
int cols_);
124 void write(
const std::vector<std::vector<T> >& data);
125 std::vector<std::vector<T> >
read();
126 #ifdef HDF5SERIE_DATASETTYPE
127 void setDescription(
const std::string &desc) {
128 SimpleAttribute<std::string> *a=createChildAttribute<SimpleAttribute<std::string> >(
"Description")();
131 std::string getDescription() {
132 SimpleAttribute<std::string> *a=openChildAttribute<SimpleAttribute<std::string> >(
"Description");
T read()
Read data.
Definition: simple.cc:46
HDF5SERIE_CLASS(int dummy, HDF5SERIE_PARENTCLASS *parent_, const std::string &name_)
Constructor for opening or creating a attribute/dataset.
Definition: simple.cc:3
void write(const T &data)
Write data.
Definition: simple.cc:36
A scalar, vector or matrix attribute/dataset.
Definition: simple.h:27