44 const H5std_string attr_name,
49 const H5std_string attr_name,
50 const H5O_info_t *oinfo,
78 Attribute openAttribute(
const char* name)
const;
79 Attribute openAttribute(
const H5std_string& name)
const;
83 Attribute openAttribute(
const unsigned int idx)
const;
86 int iterateAttrs(
attr_operator_t user_op,
unsigned* idx = NULL,
void* op_data = NULL);
89 void visit(H5_index_t idx_type, H5_iter_order_t order,
visit_operator_t user_op,
void *op_data,
unsigned int fields);
92 unsigned objVersion()
const;
95 int getNumAttrs()
const;
98 bool attrExists(
const char* name)
const;
99 bool attrExists(
const H5std_string& name)
const;
102 void renameAttr(
const char* oldname,
const char* newname)
const;
103 void renameAttr(
const H5std_string& oldname,
const H5std_string& newname)
const;
106 void removeAttr(
const char* name)
const;
107 void removeAttr(
const H5std_string& name)
const;
110 virtual hid_t getId()
const = 0;
114 ssize_t getObjName(
char *obj_name,
size_t buf_size = 0)
const;
115 ssize_t getObjName(H5std_string& obj_name,
size_t len = 0)
const;
116 H5std_string getObjName()
const;
119 #ifndef DOXYGEN_SHOULD_SKIP_THIS
127 virtual void p_setId(
const hid_t new_id) = 0;
132 #endif // DOXYGEN_SHOULD_SKIP_THIS
137 #endif // __H5Object_H
virtual hid_t getId() const
Get the id of this dataspace.
Definition: H5DataSpace.cpp:625
void * opData
Definition: H5Object.h:57
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:32
virtual hid_t getId() const
Get the id of this datatype.
Definition: H5DataType.cpp:898
attr_operator_t op
Definition: H5Object.h:56
void renameAttr(const char *oldname, const char *newname) const
Renames the named attribute from this object.
Definition: H5Object.cpp:410
int iterateAttrs(attr_operator_t user_op, unsigned *idx=NULL, void *op_data=NULL)
Iterates a user's function over all the attributes of an H5 object, which may be a group,...
Definition: H5Object.cpp:212
H5Object * obj
Definition: H5Object.h:66
virtual hid_t getId() const =0
void * opData
Definition: H5Object.h:65
Attribute openAttribute(const char *name) const
Opens an attribute given its name.
Definition: H5Object.cpp:146
Class DataSpace inherits from IdComponent and provides wrappers for the HDF5's dataspaces.
Definition: H5DataSpace.h:25
void(* attr_operator_t)(H5Object &loc, const H5std_string attr_name, void *operator_data)
Definition: H5Object.h:43
Definition: H5Exception.h:144
void visit(H5_index_t idx_type, H5_iter_order_t order, visit_operator_t user_op, void *op_data, unsigned int fields)
Recursively visits all HDF5 objects accessible from this object.
Definition: H5Object.cpp:273
H5std_string getObjName() const
Returns the name of this object as an H5std_string.
Definition: H5Object.cpp:460
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:29
Attribute createAttribute(const char *name, const DataType &type, const DataSpace &space, const PropList &create_plist=PropList::DEFAULT) const
Creates an attribute for a group, dataset, or named datatype.
Definition: H5Object.cpp:108
Definition: H5Object.h:62
class H5_DLLCPP H5Object
Definition: H5Attribute.cpp:44
Definition: H5Object.h:54
unsigned objVersion() const
Returns the header version of this HDF5 object.
Definition: H5Object.cpp:305
int getNumAttrs() const
Returns the number of attributes attached to this HDF5 object.
Definition: H5Object.cpp:333
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:28
void removeAttr(const char *name) const
Removes the named attribute from this object.
Definition: H5Object.cpp:383
H5Object * location
Definition: H5Object.h:58
virtual hid_t getId() const
Get the id of this property list.
Definition: H5PropList.cpp:292
Class H5Object is a bridge between H5Location and DataSet, DataType, and Group.
Definition: H5Object.h:69
Definition: H5AbstractDs.cpp:34
bool attrExists(const char *name) const
Checks whether the named attribute exists at this location.
Definition: H5Object.cpp:350
int(* visit_operator_t)(H5Object &obj, const H5std_string attr_name, const H5O_info_t *oinfo, void *operator_data)
Definition: H5Object.h:48
visit_operator_t op
Definition: H5Object.h:64
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:31
Class PropList inherits from IdComponent and provides wrappers for the HDF5 generic property list.
Definition: H5PropList.h:25
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|