136 H5Object(hid_t parent_id,
const char*name, hid_t link_access_properties = H5P_DEFAULT);
140 :
H5Object( parent?parent->hid : 0, name, link_access_properties)
147 H5Object(
const refptr<H5Object>&parent,
const char*name,
const H5LinkAccess&link_access_properties);
150 bool Awrite(
const char*AttributeName, hid_t file_type_id,
153 size_t Elements)
const;
155 bool Awrite(
const std::string&AttributeName, hid_t file_type_id,
158 size_t Elements)
const
160 return Awrite(AttributeName.c_str(), file_type_id,
161 mem_type_id, data, Elements);
164 template <
class name_t>
165 bool Awrite(
const name_t&AttributeName, hid_t type_id,
const void*data,
size_t Elements)
const
167 return Awrite(AttributeName, type_id, type_id, data, Elements);
171 template <
class name_t>
172 bool Awrite(
const name_t&AttributeName,
const int16_t*data,
size_t Elements)
const
174 return Awrite( AttributeName, H5T_NATIVE_INT16, data, Elements);
177 template <
class name_t>
178 bool Awrite(
const name_t&AttributeName,
const int32_t*data,
size_t Elements)
const
180 return Awrite( AttributeName, H5T_NATIVE_INT32, data, Elements);
183 template <
class name_t>
184 bool Awrite(
const name_t&AttributeName,
const int64_t*data,
size_t Elements)
const
186 return Awrite( AttributeName, H5T_NATIVE_INT64, data, Elements);
190 template <
class name_t>
191 bool Awrite(
const name_t&AttributeName,
const uint16_t*data,
size_t Elements)
const
193 return Awrite( AttributeName, H5T_NATIVE_UINT16, data, Elements);
196 template <
class name_t>
197 bool Awrite(
const name_t&AttributeName,
const uint32_t*data,
size_t Elements)
const
199 return Awrite( AttributeName, H5T_NATIVE_UINT32, data, Elements);
202 template <
class name_t>
203 bool Awrite(
const name_t&AttributeName,
const uint64_t*data,
size_t Elements)
const
205 return Awrite( AttributeName, H5T_NATIVE_UINT64, data, Elements);
208 template <
class name_t>
209 bool Awrite(
const name_t&AttributeName,
const double*data,
size_t Elements = 1)
const
211 return Awrite( AttributeName, H5T_NATIVE_DOUBLE, data, Elements);
214 template <
class name_t,
class value_type>
215 bool Awrite(
const name_t&AttributeName,
const value_type&value)
const
217 return Awrite( AttributeName, &value, 1);
222 bool Awrite(
const std::string&AttributeName,
const std::vector<T>&data)
const
224 return Awrite( AttributeName, data.data(), data.size());
227 bool Awrite(
const char*AttributeName,
const std::string&data)
const;
228 bool Awrite(
const std::string&AttributeName,
const std::string&data)
const
230 return Awrite(AttributeName.c_str(), data);
270static std::string get_name(hid_t hid);
272 std::string get_name()
const
295 herr_t get_info(H5O_info2_t&object_info,
unsigned info_fields)
const;
296 time_t get_modification_time()
const;
297 hsize_t num_attribs()
const;
299 H5O_type_t get_type()
const;
300 refptr<H5Object> get_typed_object()
const;
303 time_t get_age()
const
305 return get_modification_time();
static bool isActive()
Check whether the HDF5 library is active, i.e., has been correctly initialized and not been closed al...
Definition H++/H5Object.hpp:112
H5Object(const refptr< H5Object > &parent, const char *name, hid_t link_access_properties=H5P_DEFAULT)
H5Oopen()
Definition H++/H5Object.hpp:139
static std::string get_name(hid_t hid)
Gets the name associated with the given HDF5 ID, a wrapper to H5Iget_name() .
Definition H++/H5Object.cpp:157