17 #ifndef __H5Location_H
18 #define __H5Location_H
20 #include "H5Classes.h"
22 #ifndef H5_NO_NAMESPACE
30 const H5std_string attr_name,
59 Attribute openAttribute(
const char* name )
const;
60 Attribute openAttribute(
const H5std_string& name )
const;
64 Attribute openAttribute(
const unsigned int idx )
const;
67 void flush( H5F_scope_t scope )
const;
70 H5std_string getFileName()
const;
73 int getNumAttrs()
const;
75 #ifndef H5_NO_DEPRECATED_SYMBOLS
77 H5G_obj_t getObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
81 H5O_type_t getRefObjType(
void *ref, H5R_type_t ref_type = H5R_OBJECT)
const;
86 int iterateAttrs(
attr_operator_t user_op,
unsigned* idx = NULL,
void* op_data = NULL);
89 bool attrExists(
const char* name)
const;
90 bool attrExists(
const H5std_string& name)
const;
93 void renameAttr(
const char* oldname,
const char* newname)
const;
94 void renameAttr(
const H5std_string& oldname,
const H5std_string& newname)
const;
97 void removeAttr(
const char* name)
const;
98 void removeAttr(
const H5std_string& name)
const;
101 void setComment(
const char* name,
const char* comment)
const;
102 void setComment(
const H5std_string& name,
const H5std_string& comment)
const;
103 void setComment(
const char* comment)
const;
104 void setComment(
const H5std_string& comment)
const;
107 ssize_t getComment(
const char* name,
size_t buf_size,
char* comment)
const;
108 H5std_string getComment(
const char* name,
size_t buf_size=0)
const;
109 H5std_string getComment(
const H5std_string& name,
size_t buf_size=0)
const;
112 void removeComment(
const char* name)
const;
113 void removeComment(
const H5std_string& name)
const;
117 void reference(
void* ref,
const char* name,
118 H5R_type_t ref_type = H5R_OBJECT)
const;
119 void reference(
void* ref,
const H5std_string& name,
120 H5R_type_t ref_type = H5R_OBJECT)
const;
121 void reference(
void* ref,
const char* name,
const DataSpace& dataspace,
122 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
123 void reference(
void* ref,
const H5std_string& name,
const DataSpace& dataspace,
124 H5R_type_t ref_type = H5R_DATASET_REGION)
const;
132 DataSpace getRegion(
void *ref, H5R_type_t ref_type = H5R_DATASET_REGION)
const;
135 virtual hid_t getId()
const = 0;
141 #ifndef DOXYGEN_SHOULD_SKIP_THIS
154 void p_reference(
void* ref,
const char* name, hid_t space_id, H5R_type_t ref_type)
const;
157 hid_t p_dereference(hid_t loc_id,
const void* ref, H5R_type_t ref_type,
const PropList& plist,
const char* from_func);
159 #ifndef H5_NO_DEPRECATED_SYMBOLS
161 H5G_obj_t p_get_obj_type(
void *ref, H5R_type_t ref_type)
const;
165 H5O_type_t p_get_ref_obj_type(
void *ref, H5R_type_t ref_type)
const;
169 virtual void p_setId(
const hid_t new_id) = 0;
171 #endif // DOXYGEN_SHOULD_SKIP_THIS
178 #ifndef H5_NO_NAMESPACE
181 #endif // __H5Location_H
Class IdComponent provides wrappers of the C functions that operate on an HDF5 identifier.
Definition: H5IdComponent.h:34
Class DataSpace operates on HDF5 dataspaces.
Definition: H5DataSpace.h:25
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:32
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:34
class H5_DLLCPP H5Location
Definition: H5Location.h:26
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:50
void * opData
Definition: H5Location.h:37
void(* attr_operator_t)(H5Location &loc, const H5std_string attr_name, void *operator_data)
Definition: H5Location.h:29
H5Location * location
Definition: H5Location.h:38
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:25
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:28
User data for attribute iteration.
Definition: H5Location.h:34
attr_operator_t op
Definition: H5Location.h:36