15 #ifndef __H5Attribute_H
16 #define __H5Attribute_H
45 ssize_t getName(
char* attr_name,
size_t buf_size = 0)
const;
46 H5std_string getName(
size_t len)
const;
47 H5std_string getName()
const;
48 ssize_t getName(H5std_string& attr_name,
size_t len = 0)
const;
51 ssize_t getName(
size_t buf_size, H5std_string& attr_name)
const;
57 virtual hsize_t getStorageSize()
const;
60 virtual size_t getInMemDataSize()
const;
63 void read(
const DataType& mem_type,
void *buf)
const;
64 void read(
const DataType& mem_type, H5std_string& strg)
const;
67 void write(
const DataType& mem_type,
const void *buf)
const;
68 void write(
const DataType& mem_type,
const H5std_string& strg)
const;
71 virtual H5std_string
fromClass ()
const {
return(
"Attribute"); }
74 virtual hid_t getId()
const;
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82 virtual void p_setId(
const hid_t new_id);
83 #endif // DOXYGEN_SHOULD_SKIP_THIS
92 virtual hid_t p_get_type()
const;
95 void p_read_variable_len(
const DataType& mem_type, H5std_string& strg)
const;
96 void p_read_fixed_len(
const DataType& mem_type, H5std_string& strg)
const;
99 friend void f_Attribute_setId(
Attribute* attr, hid_t new_id);
104 #endif // __H5Attribute_H
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
void read(const DataType &mem_type, void *buf) const
Reads data from this attribute.
Definition: H5Attribute.cpp:141
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5Attribute.h:71
void incRefCount() const
Increment reference counter for the id of this object.
Definition: H5IdComponent.cpp:53
virtual ~Attribute()
Properly terminates access to this attribute.
Definition: H5Attribute.cpp:632
Class DataSpace inherits from IdComponent and provides wrappers for the HDF5's dataspaces.
Definition: H5DataSpace.h:25
Definition: H5Exception.h:144
virtual size_t getInMemDataSize() const
Gets the size in memory of the attribute's data.
Definition: H5Attribute.cpp:197
virtual hsize_t getStorageSize() const
Returns the amount of storage size required for this attribute.
Definition: H5Attribute.cpp:461
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:29
virtual hid_t getId() const
Get the id of this attribute.
Definition: H5Attribute.cpp:483
H5std_string getName() const
Returns the name of this attribute as an H5std_string.
Definition: H5Attribute.cpp:325
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:256
void write(const DataType &mem_type, const void *buf) const
Writes data to this attribute.
Definition: H5Attribute.cpp:85
AbstractDs is an abstract base class, inherited by Attribute and DataSet.
Definition: H5AbstractDs.h:36
virtual DataSpace getSpace() const
Gets a copy of the dataspace for this attribute.
Definition: H5Attribute.cpp:262
Class H5Object is a bridge between H5Location and DataSet, DataType, and Group.
Definition: H5Object.h:55
Definition: H5AbstractDs.cpp:34
Attribute()
Default constructor: Creates a stub attribute.
Definition: H5Attribute.cpp:51
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
virtual void close()
Closes this attribute.
Definition: H5Attribute.cpp:608
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:31
Definition: H5Exception.h:137
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
and the Board of Trustees of the University of Illinois
|