15 #ifndef __H5Location_H
16 #define __H5Location_H
18 #include "H5Classes.h"
26 const H5std_string attr_name,
49 void flush(H5F_scope_t scope)
const;
52 H5std_string getFileName()
const;
56 void getObjectInfo(H5O_info_t *oinfo)
const;
58 void getObjectInfo(
const char *name, H5O_info_t *oinfo,
60 void getObjectInfo(
const H5std_string& name, H5O_info_t *oinfo,
65 int getNumAttrs()
const;
67 #ifndef H5_NO_DEPRECATED_SYMBOLS
69 H5G_obj_t getObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
73 H5O_type_t getRefObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
78 unsigned objVersion()
const;
81 void setComment(
const char* name,
const char* comment)
const;
82 void setComment(
const H5std_string& name,
const H5std_string& comment)
const;
83 void setComment(
const char* comment)
const;
84 void setComment(
const H5std_string& comment)
const;
87 ssize_t getComment(
const char* name,
size_t buf_size,
char* comment)
const;
88 H5std_string getComment(
const char* name,
size_t buf_size=0)
const;
89 H5std_string getComment(
const H5std_string& name,
size_t buf_size=0)
const;
92 void removeComment(
const char* name)
const;
93 void removeComment(
const H5std_string& name)
const;
97 void reference(
void* ref,
const char* name,
98 H5R_type_t ref_type = H5R_OBJECT)
const;
99 void reference(
void* ref,
const H5std_string& name,
100 H5R_type_t ref_type = H5R_OBJECT)
const;
101 void reference(
void* ref,
const char* name,
const DataSpace& dataspace,
102 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
103 void reference(
void* ref,
const H5std_string& name,
const DataSpace& dataspace,
104 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
108 void dereference(
const H5Location& loc,
const void* ref, H5R_type_t ref_type = H5R_OBJECT);
109 void dereference(
const Attribute& attr,
const void* ref, H5R_type_t ref_type = H5R_OBJECT);
112 DataSpace getRegion(
void *ref, H5R_type_t ref_type = H5R_DATASET_REGION)
const;
119 void closeObjId(hid_t obj_id)
const;
122 virtual hid_t getId()
const = 0;
141 virtual Attribute openAttribute(
const char* name)
const;
142 virtual Attribute openAttribute(
const H5std_string& name)
const;
146 virtual Attribute openAttribute(
const unsigned int idx)
const;
149 virtual int iterateAttrs(
attr_operator_t user_op,
unsigned* idx = NULL,
150 void* op_data = NULL);
154 virtual bool attrExists(
const char* name)
const;
155 virtual bool attrExists(
const H5std_string& name)
const;
159 virtual void renameAttr(
const char* oldname,
const char* newname)
const;
160 virtual void renameAttr(
const H5std_string& oldname,
const H5std_string& newname)
const;
164 virtual void removeAttr(
const char* name)
const;
165 virtual void removeAttr(
const H5std_string& name)
const;
170 #ifndef DOXYGEN_SHOULD_SKIP_THIS
185 void p_reference(
void* ref,
const char* name, hid_t space_id, H5R_type_t ref_type)
const;
188 hid_t p_dereference(hid_t loc_id,
const void* ref, H5R_type_t ref_type,
const char* from_func);
190 #ifndef H5_NO_DEPRECATED_SYMBOLS
192 H5G_obj_t p_get_obj_type(
void *ref, H5R_type_t ref_type)
const;
196 H5O_type_t p_get_ref_obj_type(
void *ref, H5R_type_t ref_type)
const;
200 virtual void p_setId(
const hid_t new_id) = 0;
202 #endif // DOXYGEN_SHOULD_SKIP_THIS
210 #endif // __H5Location_H
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:27
Class DataSpace inherits from IdComponent and provides wrappers for the HDF5's dataspaces.
Definition: H5DataSpace.h:25
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:29
Class LinkAccPropList inherits from PropList and provides wrappers for the HDF5 file access property ...
Definition: H5LaccProp.h:29
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
H5Location is an abstract base class, providing a collection of wrappers of the C functions that take...
Definition: H5Location.h:42
void * opData
Definition: H5Location.h:32
static const LinkAccPropList & DEFAULT
Default file access property list.
Definition: H5LaccProp.h:32
void(* attr_operator_t)(H5Location &loc, const H5std_string attr_name, void *operator_data)
Definition: H5Location.h:25
H5Location * location
Definition: H5Location.h:33
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:26
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:29
Definition: H5Location.h:29
attr_operator_t op
Definition: H5Location.h:31