diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-05-10 18:04:28 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-05-10 18:04:28 (GMT) |
commit | c32b7387083d574bfa5fc31fffc45cbf21b6a1f0 (patch) | |
tree | 665af0c032ce6dda6d110da87e4a66d05b016bb2 /c++/src/H5LcreatProp.cpp | |
parent | ffd98d490f04952e01629c6378c4528459db9f9a (diff) | |
download | hdf5-c32b7387083d574bfa5fc31fffc45cbf21b6a1f0.zip hdf5-c32b7387083d574bfa5fc31fffc45cbf21b6a1f0.tar.gz hdf5-c32b7387083d574bfa5fc31fffc45cbf21b6a1f0.tar.bz2 |
C++ API improvement
Description:
- Reorganized some exception classes to reflect the HDF5 object
hierarchy and provide extendibility.
DataSetIException -> LocationException -> Exception
DataTypeIException -> LocationException -> Exception
GroupIException -> LocationException -> Exception
AttributeIException -> LocationException -> Exception
FileIException -> GroupIException -> LocationException -> Exception
- Added throwException() to these subclasses and use it in H5Location
and H5Object member functions to throw an exception that is specific
to the object that invokes the member function. Applications that
catch the base exception can continue to do the same.
- Many cleanup for inconsistencies in comments/headers.
Platforms tested:
Linux/64 (jelly)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5LcreatProp.cpp')
-rw-r--r-- | c++/src/H5LcreatProp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/src/H5LcreatProp.cpp b/c++/src/H5LcreatProp.cpp index b6d6bd6..1f17f88 100644 --- a/c++/src/H5LcreatProp.cpp +++ b/c++/src/H5LcreatProp.cpp @@ -39,7 +39,7 @@ LinkCreatPropList* LinkCreatPropList::DEFAULT_ = 0; // If LinkCreatPropList::DEFAULT_ already points to an allocated // object, throw a PropListIException. This scenario should not // happen. -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- LinkCreatPropList* LinkCreatPropList::getConstant() { @@ -65,7 +65,7 @@ LinkCreatPropList* LinkCreatPropList::getConstant() // Purpose: Deletes the constant object that LinkCreatPropList::DEFAULT_ // points to. // exception H5::PropListIException -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- void LinkCreatPropList::deleteConstants() { @@ -83,7 +83,7 @@ const LinkCreatPropList& LinkCreatPropList::DEFAULT = *getConstant(); //-------------------------------------------------------------------------- // Function: Default Constructor ///\brief Creates a file access property list -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- LinkCreatPropList::LinkCreatPropList() : StrCreatPropList(H5P_LINK_CREATE) {} @@ -91,7 +91,7 @@ LinkCreatPropList::LinkCreatPropList() : StrCreatPropList(H5P_LINK_CREATE) {} // Function: LinkCreatPropList copy constructor ///\brief Copy constructor: same HDF5 object as \a original ///\param original - IN: LinkCreatPropList instance to copy -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- LinkCreatPropList::LinkCreatPropList(const LinkCreatPropList& original) : StrCreatPropList(original) {} @@ -99,14 +99,14 @@ LinkCreatPropList::LinkCreatPropList(const LinkCreatPropList& original) : StrCre // Function: LinkCreatPropList overloaded constructor ///\brief Creates a file access property list using the id of an /// existing one. -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- LinkCreatPropList::LinkCreatPropList(const hid_t plist_id) : StrCreatPropList(plist_id) {} //-------------------------------------------------------------------------- // Function: LinkCreatPropList destructor ///\brief Noop destructor -// May, 2018 +// May 2018 //-------------------------------------------------------------------------- LinkCreatPropList::~LinkCreatPropList() {} |