17 #ifndef __H5Location_H
18 #define __H5Location_H
20 #include "H5Classes.h"
28 const H5std_string attr_name,
56 Attribute openAttribute(
const char* name )
const;
57 Attribute openAttribute(
const H5std_string& name )
const;
61 Attribute openAttribute(
const unsigned int idx )
const;
64 void flush( H5F_scope_t scope )
const;
67 H5std_string getFileName()
const;
70 int getNumAttrs()
const;
72 #ifndef H5_NO_DEPRECATED_SYMBOLS
74 H5G_obj_t getObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
78 H5O_type_t getRefObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
83 int iterateAttrs(
attr_operator_t user_op,
unsigned* idx = NULL,
void* op_data = NULL);
86 bool attrExists(
const char* name)
const;
87 bool attrExists(
const H5std_string& name)
const;
90 void renameAttr(
const char* oldname,
const char* newname)
const;
91 void renameAttr(
const H5std_string& oldname,
const H5std_string& newname)
const;
94 void removeAttr(
const char* name)
const;
95 void removeAttr(
const H5std_string& name)
const;
98 void setComment(
const char* name,
const char* comment)
const;
99 void setComment(
const H5std_string& name,
const H5std_string& comment)
const;
100 void setComment(
const char* comment)
const;
101 void setComment(
const H5std_string& comment)
const;
104 ssize_t getComment(
const char* name,
size_t buf_size,
char* comment)
const;
105 H5std_string getComment(
const char* name,
size_t buf_size=0)
const;
106 H5std_string getComment(
const H5std_string& name,
size_t buf_size=0)
const;
109 void removeComment(
const char* name)
const;
110 void removeComment(
const H5std_string& name)
const;
114 void reference(
void* ref,
const char* name,
115 H5R_type_t ref_type = H5R_OBJECT)
const;
116 void reference(
void* ref,
const H5std_string& name,
117 H5R_type_t ref_type = H5R_OBJECT)
const;
118 void reference(
void* ref,
const char* name,
const DataSpace& dataspace,
119 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
120 void reference(
void* ref,
const H5std_string& name,
const DataSpace& dataspace,
121 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
125 void dereference(
const H5Location& loc,
const void* ref, H5R_type_t ref_type = H5R_OBJECT);
126 void dereference(
const Attribute& attr,
const void* ref, H5R_type_t ref_type = H5R_OBJECT);
129 DataSpace getRegion(
void *ref, H5R_type_t ref_type = H5R_DATASET_REGION)
const;
132 virtual hid_t getId()
const = 0;
135 #ifndef DOXYGEN_SHOULD_SKIP_THIS
150 void p_reference(
void* ref,
const char* name, hid_t space_id, H5R_type_t ref_type)
const;
153 hid_t p_dereference(hid_t loc_id,
const void* ref, H5R_type_t ref_type,
const char* from_func);
155 #ifndef H5_NO_DEPRECATED_SYMBOLS
157 H5G_obj_t p_get_obj_type(
void *ref, H5R_type_t ref_type)
const;
161 H5O_type_t p_get_ref_obj_type(
void *ref, H5R_type_t ref_type)
const;
165 virtual void p_setId(
const hid_t new_id) = 0;
167 #endif // DOXYGEN_SHOULD_SKIP_THIS
175 #endif // __H5Location_H
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:32
Class DataSpace operates on HDF5 dataspaces.
Definition: H5DataSpace.h:23
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:30
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:32
class H5_DLLCPP H5Location
Definition: H5Location.h:24
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:47
void * opData
Definition: H5Location.h:34
void(* attr_operator_t)(H5Location &loc, const H5std_string attr_name, void *operator_data)
Definition: H5Location.h:27
H5Location * location
Definition: H5Location.h:35
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:23
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:26
Definition: H5Location.h:31
attr_operator_t op
Definition: H5Location.h:33