44 const H5std_string attr_name,
64 Attribute openAttribute(
const char* name)
const;
65 Attribute openAttribute(
const H5std_string& name)
const;
69 Attribute openAttribute(
const unsigned int idx)
const;
72 int iterateAttrs(
attr_operator_t user_op,
unsigned* idx = NULL,
void* op_data = NULL);
75 unsigned objVersion()
const;
78 int getNumAttrs()
const;
81 bool attrExists(
const char* name)
const;
82 bool attrExists(
const H5std_string& name)
const;
85 void renameAttr(
const char* oldname,
const char* newname)
const;
86 void renameAttr(
const H5std_string& oldname,
const H5std_string& newname)
const;
89 void removeAttr(
const char* name)
const;
90 void removeAttr(
const H5std_string& name)
const;
93 virtual hid_t
getId()
const = 0;
97 ssize_t getObjName(
char *obj_name,
size_t buf_size = 0)
const;
98 ssize_t getObjName(H5std_string& obj_name,
size_t len = 0)
const;
99 H5std_string getObjName()
const;
101 #ifndef DOXYGEN_SHOULD_SKIP_THIS
109 virtual void p_setId(
const hid_t new_id) = 0;
114 #endif // DOXYGEN_SHOULD_SKIP_THIS
119 #endif // __H5Object_H
virtual hid_t getId() const
Get the id of this dataspace.
Definition: H5DataSpace.cpp:625
void * opData
Definition: H5Object.h:51
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:50
void renameAttr(const char *oldname, const char *newname) const
Renames the named attribute from this object.
Definition: H5Object.cpp:347
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:204
virtual hid_t getId() const =0
Attribute openAttribute(const char *name) const
Opens an attribute given its name.
Definition: H5Object.cpp:136
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
H5std_string getObjName() const
Returns the name of this object as an H5std_string.
Definition: H5Object.cpp:397
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:98
class H5_DLLCPP H5Object
Definition: H5Attribute.cpp:44
Definition: H5Object.h:48
unsigned objVersion() const
Returns the header version of this HDF5 object.
Definition: H5Object.cpp:242
int getNumAttrs() const
Returns the number of attributes attached to this HDF5 object.
Definition: H5Object.cpp:270
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:320
H5Object * location
Definition: H5Object.h:52
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:55
Definition: H5AbstractDs.cpp:34
bool attrExists(const char *name) const
Checks whether the named attribute exists at this location.
Definition: H5Object.cpp:287
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
|