diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2003-03-20 02:10:46 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2003-03-20 02:10:46 (GMT) |
commit | 5cc6567850b77f29803eece112bd4887ec507467 (patch) | |
tree | 2908df92b9a52ab7311e0d9231f1e05ca79bd86b | |
parent | b2bc00b9ffde9c63e40bc33fdf9c5699c01d13fa (diff) | |
download | hdf5-5cc6567850b77f29803eece112bd4887ec507467.zip hdf5-5cc6567850b77f29803eece112bd4887ec507467.tar.gz hdf5-5cc6567850b77f29803eece112bd4887ec507467.tar.bz2 |
[svn-r6509] Purpose:
Adding new platform support
Description:
Added support for the C++ API on hpux11.00 with the compiler aCC.
Because aCC doesn't use "std," a new macro H5_NO_STD is provided
and used where "std" is presented in the library.
In addition, changed several cout's when reporting errors to cerr's.
Platforms tested:
HPUX 11.00 (kelgia)
Linux 2.2x (eirene)
IRIX 6.5.11 (modi4)
SunOS 5.7 (arabica) - by Elena
Misc. update:
-rw-r--r-- | c++/src/H5Attribute.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5DataSet.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5DataSpace.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5DataType.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5Exception.cpp | 6 | ||||
-rw-r--r-- | c++/src/H5File.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5Group.cpp | 7 | ||||
-rw-r--r-- | c++/src/H5PropList.cpp | 7 |
8 files changed, 42 insertions, 13 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index 3d642a0..09e53d3 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5Exception.h" @@ -140,7 +145,7 @@ Attribute::~Attribute() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw AttributeIException("Attribute::~Attribute", close_error.getDetailMsg()); + cerr << "Attribute::~Attribute" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5DataSet.cpp b/c++/src/H5DataSet.cpp index 81370fa..5eb640c 100644 --- a/c++/src/H5DataSet.cpp +++ b/c++/src/H5DataSet.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5RefCounter.h" @@ -257,7 +262,7 @@ DataSet::~DataSet() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw DataSetIException("DataSet::~DataSet", close_error.getDetailMsg()); + cerr << "DataSet::~DataSet" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp index 7f90d6e..091fa10 100644 --- a/c++/src/H5DataSpace.cpp +++ b/c++/src/H5DataSpace.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5Exception.h" @@ -356,7 +361,7 @@ DataSpace::~DataSpace() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw DataSpaceIException("DataSpace::~DataSpace", close_error.getDetailMsg()); + cerr << "DataSpace::~DataSpace" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp index 05677a4..aba1949 100644 --- a/c++/src/H5DataType.cpp +++ b/c++/src/H5DataType.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5RefCounter.h" @@ -352,7 +357,7 @@ DataType::~DataType() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw DataTypeIException("DataType::~DataType", close_error.getDetailMsg()); + cerr << "DataType::~DataType" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp index c61e252..d493662 100644 --- a/c++/src/H5Exception.cpp +++ b/c++/src/H5Exception.cpp @@ -12,12 +12,6 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifdef OLD_HEADER_FILENAME -#include <iostream.h> -#else -#include <iostream> -#endif - #include "H5Include.h" #include "H5Exception.h" diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp index 228f804..a314693 100644 --- a/c++/src/H5File.cpp +++ b/c++/src/H5File.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5RefCounter.h" @@ -198,7 +203,7 @@ H5File::~H5File() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw FileIException("H5File::~H5File", close_error.getDetailMsg()); + cerr << "H5File::~H5File" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5Group.cpp b/c++/src/H5Group.cpp index b8cc4a4..f805778 100644 --- a/c++/src/H5Group.cpp +++ b/c++/src/H5Group.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5RefCounter.h" @@ -151,7 +156,7 @@ Group::~Group() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw GroupIException("Group::~Group", close_error.getDetailMsg()); + cerr << "Group::~Group" << close_error.getDetailMsg() << endl; } } diff --git a/c++/src/H5PropList.cpp b/c++/src/H5PropList.cpp index 3f12be6..dbc56d1 100644 --- a/c++/src/H5PropList.cpp +++ b/c++/src/H5PropList.cpp @@ -13,6 +13,11 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include <string> +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif #include "H5Include.h" #include "H5RefCounter.h" @@ -143,7 +148,7 @@ PropList::~PropList() try { resetIdComponent( this ); } catch (Exception close_error) { // thrown by p_close - throw PropListIException("PropList::~PropList", close_error.getDetailMsg()); + cerr << "PropList::~PropList" << close_error.getDetailMsg() << endl; } } |