diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-16 00:49:46 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-16 00:49:46 (GMT) |
commit | 855aa23823a1091262524773626de3d920838e72 (patch) | |
tree | 6e8408e2341b007323405575051f39c76c61ead9 /c++/src/H5Exception.h | |
parent | 7b3df5b3f4bee819277e8a72e208437eb6ed5f26 (diff) | |
download | hdf5-855aa23823a1091262524773626de3d920838e72.zip hdf5-855aa23823a1091262524773626de3d920838e72.tar.gz hdf5-855aa23823a1091262524773626de3d920838e72.tar.bz2 |
[svn-r4977]
Purpose:
Adding support for dll
Description:
Added __DLLCPP__ to all public classes and templates.
Added #include "H5Include.h" to H5RefCounter.cpp because of the
use of DLLCPP in .h file and it needs the following chain:
H5Include.h/hdf5.h/H5public.h/H5api_adpt.h
Added #pragma warning(disable: 4251) to H5Exception.h to eliminate
this warning on private data members of type 'string.' This
occurs because 'string' is not yet instantiated at compilation
time; however, since the class is exported, the warning is
harmless.
Changed this member function's parameter to be passed as reference.
from:
void CompType::insertMember( const string name,...
to:
void CompType::insertMember( const string& name,...
Platforms tested:
Linux 6.2 (eirene)
Windows 2000
Diffstat (limited to 'c++/src/H5Exception.h')
-rw-r--r-- | c++/src/H5Exception.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/c++/src/H5Exception.h b/c++/src/H5Exception.h index 1256a8d..dc55844 100644 --- a/c++/src/H5Exception.h +++ b/c++/src/H5Exception.h @@ -8,7 +8,7 @@ namespace H5 { using namespace std; #endif -class Exception { +class __DLLCPP__ Exception { public: // Default constructor Exception(); @@ -65,11 +65,15 @@ class Exception { virtual ~Exception(); private: +// Because 'string' is not instantiated at compilation time, this +// warning is displayed; but the class is exported so the warning +// is harmless +#pragma warning(disable: 4251) string detailMessage; string funcName; }; -class FileIException : public Exception { +class __DLLCPP__ FileIException : public Exception { public: FileIException(); FileIException( const string& func_name, const string& message = NULL); @@ -77,7 +81,7 @@ class FileIException : public Exception { virtual ~FileIException(); }; -class GroupIException : public Exception { +class __DLLCPP__ GroupIException : public Exception { public: GroupIException(); GroupIException( const string& func_name, const string& message=NULL); @@ -85,7 +89,7 @@ class GroupIException : public Exception { virtual ~GroupIException(); }; -class DataSpaceIException : public Exception { +class __DLLCPP__ DataSpaceIException : public Exception { public: DataSpaceIException(); DataSpaceIException(const string& func_name, const string& message=NULL); @@ -93,7 +97,7 @@ class DataSpaceIException : public Exception { virtual ~DataSpaceIException(); }; -class DataTypeIException : public Exception { +class __DLLCPP__ DataTypeIException : public Exception { public: DataTypeIException(); DataTypeIException(const string& func_name, const string& message = NULL); @@ -101,7 +105,7 @@ class DataTypeIException : public Exception { virtual ~DataTypeIException(); }; -class PropListIException : public Exception { +class __DLLCPP__ PropListIException : public Exception { public: PropListIException(); PropListIException(const string& func_name, const string& message=NULL); @@ -109,7 +113,7 @@ class PropListIException : public Exception { virtual ~PropListIException(); }; -class DataSetIException : public Exception { +class __DLLCPP__ DataSetIException : public Exception { public: DataSetIException(); DataSetIException(const string& func_name, const string& message=NULL); @@ -117,7 +121,7 @@ class DataSetIException : public Exception { virtual ~DataSetIException(); }; -class AttributeIException : public Exception { +class __DLLCPP__ AttributeIException : public Exception { public: AttributeIException(); AttributeIException(const string& func_name, const string& message=NULL); @@ -125,7 +129,7 @@ class AttributeIException : public Exception { virtual ~AttributeIException(); }; -class ReferenceException : public Exception { +class __DLLCPP__ ReferenceException : public Exception { public: ReferenceException(); ReferenceException(const string& func_name, const string& message=NULL); @@ -133,7 +137,7 @@ class ReferenceException : public Exception { virtual ~ReferenceException(); }; -class LibraryIException : public Exception { +class __DLLCPP__ LibraryIException : public Exception { public: LibraryIException(); LibraryIException(const string& func_name, const string& message=NULL); @@ -141,7 +145,7 @@ class LibraryIException : public Exception { virtual ~LibraryIException(); }; -class IdComponentException : public Exception { +class __DLLCPP__ IdComponentException : public Exception { public: IdComponentException(); IdComponentException(const string& func_name, const string& message=NULL); |