summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Attribute.h')
-rw-r--r--c++/src/H5Attribute.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h
index 49faeea..7d7ca8d 100644
--- a/c++/src/H5Attribute.h
+++ b/c++/src/H5Attribute.h
@@ -64,13 +64,16 @@ class H5_DLLCPP Attribute : public AbstractDs, public IdComponent {
// Default constructor
Attribute();
- // Gets/Sets the attribute id.
+ // Gets the attribute id.
virtual hid_t getId() const;
- virtual void setId(const hid_t new_id);
// Destructor: properly terminates access to this attribute.
virtual ~Attribute();
+ protected:
+ // Sets the attribute id.
+ virtual void p_setId(const hid_t new_id);
+
private:
hid_t id; // HDF5 attribute id