summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CompType.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2002-02-16 00:49:46 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2002-02-16 00:49:46 (GMT)
commit855aa23823a1091262524773626de3d920838e72 (patch)
tree6e8408e2341b007323405575051f39c76c61ead9 /c++/src/H5CompType.h
parent7b3df5b3f4bee819277e8a72e208437eb6ed5f26 (diff)
downloadhdf5-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/H5CompType.h')
-rw-r--r--c++/src/H5CompType.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5CompType.h b/c++/src/H5CompType.h
index 1e06a12..bca5722 100644
--- a/c++/src/H5CompType.h
+++ b/c++/src/H5CompType.h
@@ -9,7 +9,7 @@
namespace H5 {
#endif
-class CompType : public DataType {
+class __DLLCPP__ CompType : public DataType {
public:
// Creates a new compound datatype, given the type's size
CompType( size_t size ); // H5Tcreate
@@ -59,7 +59,7 @@ class CompType : public DataType {
StrType getMemberStrType( int member_num ) const;
// Adds a new member to this compound datatype.
- void insertMember( const string name, size_t offset, const DataType& new_member ) const;
+ void insertMember( const string& name, size_t offset, const DataType& new_member ) const;
// Recursively removes padding from within this compound datatype.
void pack() const;