17 #include "H5Classes.h"
42 void flush(H5F_scope_t scope)
const;
45 H5std_string getFileName()
const;
47 #ifndef H5_NO_DEPRECATED_SYMBOLS
49 H5G_obj_t getObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
53 H5O_type_t getRefObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
58 void setComment(
const char *name,
const char *comment)
const;
59 void setComment(
const H5std_string &name,
const H5std_string &comment)
const;
60 void setComment(
const char *comment)
const;
61 void setComment(
const H5std_string &comment)
const;
64 ssize_t getComment(
const char *name,
size_t buf_size,
char *comment)
const;
65 H5std_string getComment(
const char *name,
size_t buf_size = 0)
const;
66 H5std_string getComment(
const H5std_string &name,
size_t buf_size = 0)
const;
69 void removeComment(
const char *name)
const;
70 void removeComment(
const H5std_string &name)
const;
74 void reference(
void *ref,
const char *name, H5R_type_t ref_type = H5R_OBJECT)
const;
75 void reference(
void *ref,
const H5std_string &name, H5R_type_t ref_type = H5R_OBJECT)
const;
76 void reference(
void *ref,
const char *name,
const DataSpace &dataspace,
77 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
78 void reference(
void *ref,
const H5std_string &name,
const DataSpace &dataspace,
79 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
83 void dereference(
const H5Location &loc,
const void *ref, H5R_type_t ref_type = H5R_OBJECT,
90 DataSpace getRegion(
void *ref, H5R_type_t ref_type = H5R_DATASET_REGION)
const;
99 Group createGroup(
const char *name,
size_t size_hint = 0)
const;
100 Group createGroup(
const H5std_string &name,
size_t size_hint = 0)
const;
104 Group openGroup(
const char *name)
const;
105 Group openGroup(
const H5std_string &name)
const;
126 DataSet openDataSet(
const H5std_string &name,
129 H5L_info_t getLinkInfo(
const char *link_name,
131 H5L_info_t getLinkInfo(
const H5std_string &link_name,
135 H5std_string getLinkval(
const char *link_name,
size_t size = 0)
const;
136 H5std_string getLinkval(
const H5std_string &link_name,
size_t size = 0)
const;
140 hsize_t getNumObjs()
const;
144 H5std_string getObjnameByIdx(hsize_t idx)
const;
145 ssize_t getObjnameByIdx(hsize_t idx,
char *name,
size_t size)
const;
146 ssize_t getObjnameByIdx(hsize_t idx, H5std_string &name,
size_t size)
const;
150 H5O_type_t childObjType(
const H5std_string &objname)
const;
151 H5O_type_t childObjType(
const char *objname)
const;
152 H5O_type_t childObjType(hsize_t index, H5_index_t index_type = H5_INDEX_NAME,
153 H5_iter_order_t order = H5_ITER_INC,
const char *objname =
".")
const;
157 unsigned childObjVersion(
const char *objname)
const;
158 unsigned childObjVersion(
const H5std_string &objname)
const;
161 void getObjinfo(H5O_info_t &objinfo,
unsigned fields = H5O_INFO_BASIC)
const;
164 void getObjinfo(
const char *name, H5O_info_t &objinfo,
unsigned fields = H5O_INFO_BASIC,
166 void getObjinfo(
const H5std_string &name, H5O_info_t &objinfo,
unsigned fields = H5O_INFO_BASIC,
170 void getObjinfo(
const char *grp_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t idx,
171 H5O_info_t &objinfo,
unsigned fields = H5O_INFO_BASIC,
173 void getObjinfo(
const H5std_string &grp_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t idx,
174 H5O_info_t &objinfo,
unsigned fields = H5O_INFO_BASIC,
177 #ifndef H5_NO_DEPRECATED_SYMBOLS
180 H5G_obj_t getObjTypeByIdx(hsize_t idx)
const;
181 H5G_obj_t getObjTypeByIdx(hsize_t idx,
char *type_name)
const;
182 H5G_obj_t getObjTypeByIdx(hsize_t idx, H5std_string &type_name)
const;
186 void getObjinfo(
const char *name, hbool_t follow_link, H5G_stat_t &statbuf)
const;
187 void getObjinfo(
const H5std_string &name, hbool_t follow_link, H5G_stat_t &statbuf)
const;
188 void getObjinfo(
const char *name, H5G_stat_t &statbuf)
const;
189 void getObjinfo(
const H5std_string &name, H5G_stat_t &statbuf)
const;
193 int iterateElems(
const char *name,
int *idx, H5G_iterate_t op,
void *op_data);
194 int iterateElems(
const H5std_string &name,
int *idx, H5G_iterate_t op,
void *op_data);
198 void link(
const char *target_name,
const char *link_name,
201 void link(
const H5std_string &target_name,
const H5std_string &link_name,
206 void link(
const char *curr_name,
const Group &new_loc,
const char *new_name,
209 void link(
const H5std_string &curr_name,
const Group &new_loc,
const H5std_string &new_name,
214 void link(
const char *curr_name,
const hid_t same_loc,
const char *new_name,
217 void link(
const H5std_string &curr_name,
const hid_t same_loc,
const H5std_string &new_name,
224 void link(H5L_type_t link_type,
const char *curr_name,
const char *new_name)
const;
225 void link(H5L_type_t link_type,
const H5std_string &curr_name,
const H5std_string &new_name)
const;
232 void mount(
const char *name,
const H5File &child,
const PropList &plist)
const;
233 void mount(
const H5std_string &name,
const H5File &child,
const PropList &plist)
const;
236 void unmount(
const char *name)
const;
237 void unmount(
const H5std_string &name)
const;
240 void copyLink(
const char *src_name,
const Group &dst,
const char *dst_name,
243 void copyLink(
const H5std_string &src_name,
const Group &dst,
const H5std_string &dst_name,
248 void copyLink(
const char *src_name,
const char *dst_name,
251 void copyLink(
const H5std_string &src_name,
const H5std_string &dst_name,
256 void moveLink(
const char *src_name,
const Group &dst,
const char *dst_name,
259 void moveLink(
const H5std_string &src_name,
const Group &dst,
const H5std_string &dst_name,
264 void moveLink(
const char *src_name,
const char *dst_name,
267 void moveLink(
const H5std_string &src_name,
const H5std_string &dst_name,
273 void move(
const char *src,
const char *dst)
const;
274 void move(
const H5std_string &src,
const H5std_string &dst)
const;
279 virtual void throwException(
const H5std_string &func_name,
const H5std_string &msg)
const;
285 #ifndef DOXYGEN_SHOULD_SKIP_THIS
297 void p_reference(
void *ref,
const char *name, hid_t space_id, H5R_type_t ref_type)
const;
300 hid_t p_dereference(hid_t loc_id,
const void *ref, H5R_type_t ref_type,
const PropList &plist,
301 const char *from_func);
303 #ifndef H5_NO_DEPRECATED_SYMBOLS
305 H5G_obj_t p_get_obj_type(
void *ref, H5R_type_t ref_type)
const;
309 H5O_type_t p_get_ref_obj_type(
void *ref, H5R_type_t ref_type)
const;
315 #endif // DOXYGEN_SHOULD_SKIP_THIS
323 #endif // H5Location_H
Group openGroup(const char *name) const
Opens an existing group in a location which can be a file or another group.
Definition: H5Location.cpp:899
virtual hid_t getId() const
Get the id of this datatype.
Definition: H5DataType.cpp:900
ssize_t getComment(const char *name, size_t buf_size, char *comment) const
Retrieves the comment for this location, returning its length.
Definition: H5Location.cpp:315
H5G_obj_t getObjType(void *ref, H5R_type_t ref_type=H5R_OBJECT) const
Retrieves the type of object that an object reference points to.
Definition: H5Location.cpp:614
Definition: H5Exception.h:158
void unmount(const char *name) const
Unmounts the specified file.
Definition: H5Location.cpp:1824
Class DSetCreatPropList inherits from ObjCreatPropList and provides wrappers for the HDF5 dataset cre...
Definition: H5DcreatProp.h:28
void link(const char *target_name, const char *link_name, const LinkCreatPropList &lcpl=LinkCreatPropList::DEFAULT, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Creates a soft link from link_name to target_name.
Definition: H5Location.cpp:1054
bool nameExists(const char *name, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Checks if a link of a given name exists in a location.
Definition: H5Location.cpp:93
Definition: H5Exception.h:165
virtual void throwException(const H5std_string &func_name, const H5std_string &msg) const
For subclasses, H5File and Group, to throw appropriate exception.
Definition: H5Location.cpp:2270
void move(const char *src, const char *dst) const
Renames an object at this location. - Deprecated due to inadequate functionality.
Definition: H5Location.cpp:1414
virtual ~H5Location()
Noop destructor.
Definition: H5Location.cpp:2312
Definition: H5Exception.h:102
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:27
DataSet createDataSet(const char *name, const DataType &data_type, const DataSpace &data_space, const DSetCreatPropList &create_plist=DSetCreatPropList::DEFAULT, const DSetAccPropList &dapl=DSetAccPropList::DEFAULT, const LinkCreatPropList &lcpl=LinkCreatPropList::DEFAULT) const
Creates a new dataset at this location.
Definition: H5Location.cpp:949
Class DataSpace inherits from IdComponent and provides wrappers for the HDF5's dataspaces.
Definition: H5DataSpace.h:24
virtual hid_t getId() const H5_OVERRIDE
Get the id of this dataspace.
Definition: H5DataSpace.cpp:620
void copyLink(const char *src_name, const Group &dst, const char *dst_name, const LinkCreatPropList &lcpl=LinkCreatPropList::DEFAULT, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Copies a link from one group to another.
Definition: H5Location.cpp:1247
H5std_string getFileName() const
Gets the name of the file, in which an HDF5 object at this location belongs.
Definition: H5Location.cpp:188
static const LinkCreatPropList & DEFAULT
Default link creation property list.
Definition: H5LcreatProp.h:27
void removeComment(const char *name) const
Removes the comment from an object specified by its name.
Definition: H5Location.cpp:279
bool exists(const char *name, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Deprecated in favor of nameExists.
Definition: H5Location.cpp:133
Class Group represents an HDF5 group.
Definition: H5Group.h:23
H5O_type_t getRefObjType(void *ref, H5R_type_t ref_type=H5R_OBJECT) const
Retrieves the type of object that an object reference points to.
Definition: H5Location.cpp:671
void unlink(const char *link_name, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Removes the specified link from this group.
Definition: H5Location.cpp:1441
H5L_info_t getLinkInfo(const char *link_name, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Returns the information of the named link.
Definition: H5Location.cpp:1664
void setComment(const char *name, const char *comment) const
Sets or resets the comment for an object specified by its name.
Definition: H5Location.cpp:219
static const DSetAccPropList & DEFAULT
Default dataset creation property list.
Definition: H5DaccProp.h:27
virtual hid_t getId() const H5_OVERRIDE
Get the id of this file.
Definition: H5File.cpp:560
Class LinkAccPropList inherits from PropList and provides wrappers for the HDF5 link access property ...
Definition: H5LaccProp.h:24
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:264
Class LinkCreatPropList inherits from PropList and provides wrappers for the HDF5 link creation prope...
Definition: H5LcreatProp.h:24
hsize_t getNumObjs() const
Deprecated - moved to H5::Group in 1.10.2.
Definition: H5Location.cpp:1893
H5O_type_t childObjType(const H5std_string &objname) const
This is an overloaded member function, provided for convenience. It takes an H5std_string for the obj...
Definition: H5Location.cpp:2056
H5std_string getObjnameByIdx(hsize_t idx) const
Returns the name of an object in this group, given the object's index.
Definition: H5Location.cpp:1919
void dereference(const H5Location &loc, const void *ref, H5R_type_t ref_type=H5R_OBJECT, const PropList &plist=PropList::DEFAULT)
Dereferences a reference into an HDF5 object, given an HDF5 object.
Definition: H5Location.cpp:567
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:27
void reference(void *ref, const char *name, H5R_type_t ref_type=H5R_OBJECT) const
This is an overloaded function, provided for your convenience. It differs from the above function in ...
Definition: H5Location.cpp:494
void f_DataSpace_setId(DataSpace *dspace, hid_t new_id)
Definition: H5Location.cpp:2302
DataSet openDataSet(const char *name, const DSetAccPropList &dapl=DSetAccPropList::DEFAULT) const
Opens an existing dataset at this location.
Definition: H5Location.cpp:1005
Definition: H5Exception.h:144
Class H5File represents an HDF5 file and inherits from class Group as file is a root group.
Definition: H5File.h:24
H5G_obj_t getObjTypeByIdx(hsize_t idx) const
Returns the type of an object in this group, given the object's index.
Definition: H5Location.cpp:2187
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:26
virtual hid_t getId() const
Get the id of this property list.
Definition: H5PropList.cpp:292
static const LinkAccPropList & DEFAULT
Default link access property list.
Definition: H5LaccProp.h:27
Definition: H5AbstractDs.cpp:33
DataSpace getRegion(void *ref, H5R_type_t ref_type=H5R_DATASET_REGION) const
Retrieves a dataspace with the region pointed to selected.
Definition: H5Location.cpp:729
Class DSetAccPropList inherits from LinkAccPropList and provides wrappers for the HDF5 dataset access...
Definition: H5DaccProp.h:24
void flush(H5F_scope_t scope) const
Flushes all buffers associated with a location to disk.
Definition: H5Location.cpp:171
H5std_string getLinkval(const char *link_name, size_t size=0) const
Returns the name of the object that the symbolic link points to.
Definition: H5Location.cpp:1697
static const DSetCreatPropList & DEFAULT
Default dataset creation property list.
Definition: H5DcreatProp.h:31
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:27
void mount(const char *name, const H5File &child, const PropList &plist) const
Mounts the file child onto this group.
Definition: H5Location.cpp:1754
void moveLink(const char *src_name, const Group &dst, const char *dst_name, const LinkCreatPropList &lcpl=LinkCreatPropList::DEFAULT, const LinkAccPropList &lapl=LinkAccPropList::DEFAULT) const
Renames a link in this group and moves it to a new location.
Definition: H5Location.cpp:1329
void getObjinfo(H5O_info_t &objinfo, unsigned fields=H5O_INFO_BASIC) const
Retrieves information about an HDF5 object.
Definition: H5Location.cpp:1477
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:30
Group createGroup(const char *name, const LinkCreatPropList &lcpl) const
Creates a new group at this location, which can be a file, group, dataset, attribute,...
Definition: H5Location.cpp:793
Class PropList inherits from IdComponent and provides wrappers for the HDF5 generic property list.
Definition: H5PropList.h:24
unsigned childObjVersion(const char *objname) const
Returns the object header version of an object in this file/group, given the object's name.
Definition: H5Location.cpp:2138
virtual hid_t getId() const H5_OVERRIDE
Get the id of this group.
Definition: H5Group.cpp:197
int iterateElems(const char *name, int *idx, H5G_iterate_t op, void *op_data)
Iterates a user's function over the entries of a group.
Definition: H5Location.cpp:1862
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
|