summaryrefslogtreecommitdiffstats
path: root/c++/src/H5PropList.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-10-05 08:10:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-10-05 08:10:39 (GMT)
commit36e9a8929c9754e660567437fa153e3351821ab9 (patch)
tree0d1097cdca223bf44b2bca866c02b2c424d53e73 /c++/src/H5PropList.h
parentb51f57fd854506c33ad9df1d5bf9a1dd81f15339 (diff)
downloadhdf5-36e9a8929c9754e660567437fa153e3351821ab9.zip
hdf5-36e9a8929c9754e660567437fa153e3351821ab9.tar.gz
hdf5-36e9a8929c9754e660567437fa153e3351821ab9.tar.bz2
[svn-r27955] Merge of r27943 and 27945 from the trunk:
C++ changes Tested on: Ubuntu 15.04 (Linux 3.19 x86_64), gcc 4.9.2 serial C++
Diffstat (limited to 'c++/src/H5PropList.h')
-rw-r--r--c++/src/H5PropList.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/c++/src/H5PropList.h b/c++/src/H5PropList.h
index f26201d..be04451 100644
--- a/c++/src/H5PropList.h
+++ b/c++/src/H5PropList.h
@@ -24,8 +24,8 @@ namespace H5 {
//! Class PropList provides operations for generic property lists.
class H5_DLLCPP PropList : public IdComponent {
public:
- // Default property list
- static const PropList DEFAULT;
+ ///\brief Default property list
+ static const PropList& DEFAULT;
// Creates a property list of a given type or creates a copy of an
// existing property list giving the property list id.
@@ -110,12 +110,23 @@ class H5_DLLCPP PropList : public IdComponent {
// Destructor: properly terminates access to this property list.
virtual ~PropList();
- protected:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
+ // Deletes the PropList global constant
+ static void deleteConstants();
+
+ protected:
hid_t id; // HDF5 property list id
// Sets the property list id.
virtual void p_setId(const hid_t new_id);
+
+ private:
+ static PropList* DEFAULT_;
+
+ // Dynamically allocates the PropList global constant
+ static PropList* getConstant();
+
#endif // DOXYGEN_SHOULD_SKIP_THIS
};