diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-23 21:30:43 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-23 21:30:43 (GMT) |
commit | 74079aa0de09be6c57244bb4d33fcda51f7a2f4c (patch) | |
tree | ccce4a37a0a538d1a8871a3d2828e7f1f30746e4 /c++/src/H5Exception.cpp | |
parent | e18ee63c5a5c294d1949d83b1d34ae1fe15086ae (diff) | |
download | hdf5-74079aa0de09be6c57244bb4d33fcda51f7a2f4c.zip hdf5-74079aa0de09be6c57244bb4d33fcda51f7a2f4c.tar.gz hdf5-74079aa0de09be6c57244bb4d33fcda51f7a2f4c.tar.bz2 |
[svn-r24870] Description:
- Added another overload for char* argument:
ssize_t getComment(const char* name, const size_t buf_size, char* comment)
- Changed default value to 0 for the other two getComment methods
- Added HDmemset to after every char string allocation to clear the buffer
- Added a null terminator to the comment returned from the C call, in
getComment methods
- Some minor cleanup
Merged from trunk: -r24865 -r24867
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Exception.cpp')
-rw-r--r-- | c++/src/H5Exception.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp index ddc1d00..492abed 100644 --- a/c++/src/H5Exception.cpp +++ b/c++/src/H5Exception.cpp @@ -522,6 +522,29 @@ LibraryIException::LibraryIException(const H5std_string& func_name, const H5std_ LibraryIException::~LibraryIException() throw() {} //-------------------------------------------------------------------------- +// Subclass: LocationException +// Programmer Binh-Minh Ribler - 2014 +//-------------------------------------------------------------------------- +//-------------------------------------------------------------------------- +// Function: LocationException default constructor +///\brief Default constructor. +//-------------------------------------------------------------------------- +LocationException::LocationException():Exception(){} +//-------------------------------------------------------------------------- +// Function: LocationException overloaded constructor +///\brief Creates a LocationException with the name of the function, +/// in which the failure occurs, and an optional detailed message. +///\param func_name - IN: Name of the function where failure occurs +///\param message - IN: Message on the failure +//-------------------------------------------------------------------------- +LocationException::LocationException(const H5std_string& func_name, const H5std_string& message) : Exception(func_name, message) {} +//-------------------------------------------------------------------------- +// Function: LocationException destructor +///\brief Noop destructor. +//-------------------------------------------------------------------------- +LocationException::~LocationException() throw() {} + +//-------------------------------------------------------------------------- // Subclass: IdComponentException // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- |