diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-08-20 04:35:18 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-08-20 04:35:18 (GMT) |
commit | 824ba5e2fde476934df42284271c358b14e1a6af (patch) | |
tree | caf62890a1527b0fdc2a77a550c7e11f30c48584 /c++/src/H5Attribute.h | |
parent | b142a4144862b22c37c27aa11e2ee519a08ede2f (diff) | |
download | hdf5-824ba5e2fde476934df42284271c358b14e1a6af.zip hdf5-824ba5e2fde476934df42284271c358b14e1a6af.tar.gz hdf5-824ba5e2fde476934df42284271c358b14e1a6af.tar.bz2 |
[svn-r9129] Purpose: Updating documentation
Description:
Updated various function headers for the RM as reviewing progresses.
Rearranged functions in header files for more sensible look of the RM.
Platforms tested:
SunOS 5.7 (arabica)
Linux 2.4 (eirene)
Diffstat (limited to 'c++/src/H5Attribute.h')
-rw-r--r-- | c++/src/H5Attribute.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h index 13e29ce..b18a6f0 100644 --- a/c++/src/H5Attribute.h +++ b/c++/src/H5Attribute.h @@ -22,24 +22,21 @@ namespace H5 { class H5_DLLCPP Attribute : public AbstractDs { public: - // Writes data to this attribute. - void write(const DataType& mem_type, const void *buf ) const; - void write(const DataType& mem_type, const string& strg ) const; - - // Reads data from this attribute. - void read( const DataType& mem_type, void *buf ) const; - void read( const DataType& mem_type, string& strg ) const; - - // Gets a copy of the dataspace for this attribute. - virtual DataSpace getSpace() const; - // Gets the name of this attribute. ssize_t getName( size_t buf_size, string& attr_name ) const; string getName( size_t buf_size ) const; // returns name, not its length string getName() const; // returns name, no argument - // do not inherit iterateAttrs from H5Object - int iterateAttrs() { return 0; } + // Gets a copy of the dataspace for this attribute. + virtual DataSpace getSpace() const; + + // Reads data from this attribute. + void read( const DataType& mem_type, void *buf ) const; + void read( const DataType& mem_type, string& strg ) const; + + // Writes data to this attribute. + void write(const DataType& mem_type, const void *buf ) const; + void write(const DataType& mem_type, const string& strg ) const; // Creates a copy of an existing attribute using the attribute id Attribute( const hid_t attr_id ); @@ -47,6 +44,12 @@ class H5_DLLCPP Attribute : public AbstractDs { // Copy constructor: makes a copy of an existing Attribute object. Attribute( const Attribute& original ); +#ifndef DOXYGEN_SHOULD_SKIP_THIS + // Used by the API to appropriately close an attribute + virtual void p_close() const; +#endif // DOXYGEN_SHOULD_SKIP_THIS + + // Destructor: properly terminates access to this attribute. virtual ~Attribute(); private: @@ -54,7 +57,10 @@ class H5_DLLCPP Attribute : public AbstractDs { // getTypeClass and various API functions getXxxType // defined in AbstractDs for generic datatype and specific // sub-types - virtual hid_t p_getType() const; + virtual hid_t p_get_type() const; + + // do not inherit iterateAttrs from H5Object + int iterateAttrs() { return 0; } // Default constructor Attribute(); |