summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-07 19:02:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-07 19:02:46 (GMT)
commit4e23c807585ed705173f32e374884a46e4a4f2dd (patch)
treedf458773252f84a19720b4d8b3588db955f4b6d1 /c++
parent2d5f8835fd9851c65d8e33a9c4bbe5da64d5427e (diff)
downloadhdf5-4e23c807585ed705173f32e374884a46e4a4f2dd.zip
hdf5-4e23c807585ed705173f32e374884a46e4a4f2dd.tar.gz
hdf5-4e23c807585ed705173f32e374884a46e4a4f2dd.tar.bz2
[svn-r7181] Purpose:
Version update Description: Removed 1.4 compatibility code in the library. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'c++')
-rw-r--r--c++/src/H5DxferProp.cpp54
-rw-r--r--c++/src/H5DxferProp.h16
-rw-r--r--c++/src/H5FaccProp.cpp20
-rw-r--r--c++/src/H5FaccProp.h9
-rw-r--r--c++/src/H5FcreatProp.cpp22
-rw-r--r--c++/src/H5FcreatProp.h9
-rw-r--r--c++/test/dsets.cpp4
-rw-r--r--c++/test/tfile.cpp12
8 files changed, 0 insertions, 146 deletions
diff --git a/c++/src/H5DxferProp.cpp b/c++/src/H5DxferProp.cpp
index e663eeb..8a7b06c 100644
--- a/c++/src/H5DxferProp.cpp
+++ b/c++/src/H5DxferProp.cpp
@@ -33,30 +33,6 @@ DSetMemXferPropList::DSetMemXferPropList() : PropList( H5P_DATASET_XFER) {}
// Copy constructor: makes a copy of the original DSetMemXferPropList object;
DSetMemXferPropList::DSetMemXferPropList( const DSetMemXferPropList& orig ) : PropList( orig ) {}
-#ifdef H5_WANT_H5_V1_4_COMPAT
-// Sets type conversion and background buffers
-void DSetMemXferPropList::setBuffer( hsize_t size, void* tconv, void* bkg ) const
-{
- herr_t ret_value = H5Pset_buffer( id, size, tconv, bkg );
- if( ret_value < 0 )
- {
- throw PropListIException("DSetMemXferPropList::setBuffer",
- "H5Pset_buffer failed");
- }
-}
-
-// Reads buffer settings
-hsize_t DSetMemXferPropList::getBuffer( void** tconv, void** bkg ) const
-{
- hsize_t buffer_size = H5Pget_buffer( id, tconv, bkg );
- if( buffer_size == 0 )
- {
- throw PropListIException("DSetMemXferPropList::getBuffer",
- "H5Pget_buffer returned 0 for buffer size - failure");
- }
- return( buffer_size );
-}
-#else /* H5_WANT_H5_V1_4_COMPAT */
// Sets type conversion and background buffers
void DSetMemXferPropList::setBuffer( size_t size, void* tconv, void* bkg ) const
{
@@ -79,7 +55,6 @@ size_t DSetMemXferPropList::getBuffer( void** tconv, void** bkg ) const
}
return( buffer_size );
}
-#endif /* H5_WANT_H5_V1_4_COMPAT */
// Sets the dataset transfer property list status to TRUE or FALSE
void DSetMemXferPropList::setPreserve( bool status ) const
@@ -107,35 +82,6 @@ bool DSetMemXferPropList::getPreserve() const
}
}
-#ifdef H5_WANT_H5_V1_4_COMPAT
-// Indicates whether to cache hyperslab blocks during I/O
-void DSetMemXferPropList::setHyperCache( bool cache, unsigned limit ) const
-{
- herr_t ret_value = H5Pset_hyper_cache( id, cache, limit );
- if( ret_value < 0 )
- {
- throw PropListIException("DSetMemXferPropList::setHyperCache",
- "H5Pset_hyper_cache failed");
- }
-}
-
-// Returns information regarding the caching of hyperslab blocks during I/O
-void DSetMemXferPropList::getHyperCache( bool& cache, unsigned& limit ) const
-{
- unsigned temp_cache; // C routine takes hid_t, unsigned*, unsigned*
- herr_t ret_value = H5Pget_hyper_cache( id, &temp_cache, &limit );
- if( ret_value < 0 )
- {
- throw PropListIException("DSetMemXferPropList::getHyperCache",
- "H5Pget_hyper_cache failed");
- }
- if( temp_cache > 0 )
- cache = true;
- else
- cache = false;
-}
-#endif /* H5_WANT_H5_V1_4_COMPAT */
-
// Sets B-tree split ratios for a dataset transfer property list
void DSetMemXferPropList::setBtreeRatios( double left, double middle, double right ) const
{
diff --git a/c++/src/H5DxferProp.h b/c++/src/H5DxferProp.h
index e071870..036bbb1 100644
--- a/c++/src/H5DxferProp.h
+++ b/c++/src/H5DxferProp.h
@@ -30,19 +30,11 @@ class H5_DLLCPP DSetMemXferPropList : public PropList {
// Copy constructor: creates a copy of a DSetMemXferPropList object
DSetMemXferPropList( const DSetMemXferPropList& orig );
-#ifdef H5_WANT_H5_V1_4_COMPAT
- // Sets type conversion and background buffers
- void setBuffer( hsize_t size, void* tconv, void* bkg ) const;
-
- // Reads buffer settings
- hsize_t getBuffer( void** tconv, void** bkg ) const;
-#else /* H5_WANT_H5_V1_4_COMPAT */
// Sets type conversion and background buffers
void setBuffer( size_t size, void* tconv, void* bkg ) const;
// Reads buffer settings
size_t getBuffer( void** tconv, void** bkg ) const;
-#endif /* H5_WANT_H5_V1_4_COMPAT */
// Sets the dataset transfer property list status to TRUE or FALSE
void setPreserve( bool status ) const;
@@ -50,14 +42,6 @@ class H5_DLLCPP DSetMemXferPropList : public PropList {
// Checks status of the dataset transfer property list
bool getPreserve() const;
-#ifdef H5_WANT_H5_V1_4_COMPAT
- // Indicates whether to cache hyperslab blocks during I/O
- void setHyperCache( bool cache, unsigned limit = 0 ) const;
-
- // Returns information regarding the caching of hyperslab blocks during I/O
- void getHyperCache( bool& cache, unsigned& limit ) const;
-#endif /* H5_WANT_H5_V1_4_COMPAT */
-
// Sets B-tree split ratios for a dataset transfer property list
void setBtreeRatios( double left, double middle, double right ) const;
diff --git a/c++/src/H5FaccProp.cpp b/c++/src/H5FaccProp.cpp
index 1e33ce3..465c79a 100644
--- a/c++/src/H5FaccProp.cpp
+++ b/c++/src/H5FaccProp.cpp
@@ -203,25 +203,6 @@ void FileAccPropList::getMpi( MPI_Comm& comm, MPI_Info& info ) const
}
*/
-#ifdef H5_WANT_H5_V1_4_COMPAT
-void FileAccPropList::setCache( int mdc_nelmts, int rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0 ) const
-{
- herr_t ret_value = H5Pset_cache( id, mdc_nelmts, rdcc_nelmts, rdcc_nbytes, rdcc_w0 );
- if( ret_value < 0 )
- {
- throw PropListIException("FileAccPropList::setCache", "H5Pset_cache failed");
- }
-}
-
-void FileAccPropList::getCache( int& mdc_nelmts, int& rdcc_nelmts, size_t& rdcc_nbytes, double& rdcc_w0 ) const
-{
- herr_t ret_value = H5Pget_cache( id, &mdc_nelmts, &rdcc_nelmts, &rdcc_nbytes, &rdcc_w0 );
- if( ret_value < 0 )
- {
- throw PropListIException("FileAccPropList::getCache", "H5Pget_cache failed");
- }
-}
-#else /* H5_WANT_H5_V1_4_COMPAT */
void FileAccPropList::setCache( int mdc_nelmts, size_t rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0 ) const
{
herr_t ret_value = H5Pset_cache( id, mdc_nelmts, rdcc_nelmts, rdcc_nbytes, rdcc_w0 );
@@ -239,7 +220,6 @@ void FileAccPropList::getCache( int& mdc_nelmts, size_t& rdcc_nelmts, size_t& rd
throw PropListIException("FileAccPropList::getCache", "H5Pget_cache failed");
}
}
-#endif /* H5_WANT_H5_V1_4_COMPAT */
void FileAccPropList::setGcReferences( unsigned gc_ref ) const
{
diff --git a/c++/src/H5FaccProp.h b/c++/src/H5FaccProp.h
index c55d70d..91f2222 100644
--- a/c++/src/H5FaccProp.h
+++ b/c++/src/H5FaccProp.h
@@ -75,21 +75,12 @@ class H5_DLLCPP FileAccPropList : public PropList {
// family driver and retrieves the member's file access property list.
// bool getFamily( hsize_t& memb_size, FileAccPropList& memb_plist ) const;
-#ifdef H5_WANT_H5_V1_4_COMPAT
- // Sets the meta data cache and raw data chunk cache parameters.
- void setCache( int mdc_nelmts, int rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0 ) const;
-
- // Retrieves maximum sizes of data caches and the preemption
- // policy value.
- void getCache( int& mdc_nelmts, int& rdcc_nelmts, size_t& rdcc_nbytes, double& rdcc_w0 ) const;
-#else /* H5_WANT_H5_V1_4_COMPAT */
// Sets the meta data cache and raw data chunk cache parameters.
void setCache( int mdc_nelmts, size_t rdcc_nelmts, size_t rdcc_nbytes, double rdcc_w0 ) const;
// Retrieves maximum sizes of data caches and the preemption
// policy value.
void getCache( int& mdc_nelmts, size_t& rdcc_nelmts, size_t& rdcc_nbytes, double& rdcc_w0 ) const;
-#endif /* H5_WANT_H5_V1_4_COMPAT */
// Sets the low-level driver to split meta data from raw data.
// void setSplit( FileAccPropList& meta_plist, FileAccPropList& raw_plist,
diff --git a/c++/src/H5FcreatProp.cpp b/c++/src/H5FcreatProp.cpp
index 404aca2..c59aa11 100644
--- a/c++/src/H5FcreatProp.cpp
+++ b/c++/src/H5FcreatProp.cpp
@@ -86,27 +86,6 @@ void FileCreatPropList::getSizes( size_t& sizeof_addr, size_t& sizeof_size ) con
}
}
-#ifdef H5_WANT_H5_V1_4_COMPAT
-void FileCreatPropList::setSymk( int ik, int lk ) const
-{
- herr_t ret_value = H5Pset_sym_k( id, ik, lk );
- if( ret_value < 0 )
- {
- throw PropListIException("FileCreatPropList::setSymk",
- "H5Pset_sym_k failed");
- }
-}
-
-void FileCreatPropList::getSymk( int& ik, int& lk ) const
-{
- herr_t ret_value = H5Pget_sym_k( id, &ik, &lk );
- if( ret_value < 0 )
- {
- throw PropListIException("FileCreatPropList::getSymk",
- "H5Pget_sym_k failed");
- }
-}
-#else /* H5_WANT_H5_V1_4_COMPAT */
void FileCreatPropList::setSymk( int ik, unsigned lk ) const
{
herr_t ret_value = H5Pset_sym_k( id, ik, lk );
@@ -126,7 +105,6 @@ void FileCreatPropList::getSymk( int& ik, unsigned& lk ) const
"H5Pget_sym_k failed");
}
}
-#endif /* H5_WANT_H5_V1_4_COMPAT */
void FileCreatPropList::setIstorek( int ik ) const
{
diff --git a/c++/src/H5FcreatProp.h b/c++/src/H5FcreatProp.h
index 79a7e25..d1ec817 100644
--- a/c++/src/H5FcreatProp.h
+++ b/c++/src/H5FcreatProp.h
@@ -47,21 +47,12 @@ class H5_DLLCPP FileCreatPropList : public PropList {
// file according to this file creation property list.
void getSizes( size_t& sizeof_addr, size_t& sizeof_size ) const;
-#ifdef H5_WANT_H5_V1_4_COMPAT
- // Sets the size of parameters used to control the symbol table nodes.
- void setSymk( int int_nodes_k, int leaf_nodes_k ) const;
-
- // Retrieves the size of the symbol table B-tree 1/2 rank and the
- // symbol table leaf node 1/2 size.
- void getSymk( int& int_nodes_k, int& leaf_nodes_k ) const;
-#else /* H5_WANT_H5_V1_4_COMPAT */
// Sets the size of parameters used to control the symbol table nodes.
void setSymk( int int_nodes_k, unsigned leaf_nodes_k ) const;
// Retrieves the size of the symbol table B-tree 1/2 rank and the
// symbol table leaf node 1/2 size.
void getSymk( int& int_nodes_k, unsigned& leaf_nodes_k ) const;
-#endif /* H5_WANT_H5_V1_4_COMPAT */
// Sets the size of parameter used to control the B-trees for
// indexing chunked datasets.
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp
index b92381a..0d58cd0 100644
--- a/c++/test/dsets.cpp
+++ b/c++/test/dsets.cpp
@@ -648,11 +648,7 @@ test_compression(H5File& file)
*/
TESTING("compression (app-defined method)");
-#ifdef H5_WANT_H5_V1_4_COMPAT
- if (H5Zregister (H5Z_FILTER_BOGUS, "bogus", bogus)<0) goto error;
-#else /* H5_WANT_H5_V1_4_COMPAT */
if (H5Zregister (H5Z_BOGUS)<0) goto error;
-#endif /* H5_WANT_H5_V1_4_COMPAT */
if (H5Pset_filter (dscreatplist.getId(), H5Z_FILTER_BOGUS, 0, 0, NULL)<0) goto error;
dscreatplist.setFilter (H5Z_FILTER_BOGUS, 0, 0, NULL);
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 82d7338..37cc5e1 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -153,11 +153,7 @@ test_file_create(void)
VERIFY(parm2, F1_LENGTH_SIZE, "FileCreatPropList::getSizes");
int iparm1; /*file-creation parameters */
-#ifdef H5_WANT_H5_V1_4_COMPAT
- int iparm2; /*file-creation parameters */
-#else /* H5_WANT_H5_V1_4_COMPAT */
unsigned iparm2; /*file-creation parameters */
-#endif /* H5_WANT_H5_V1_4_COMPAT */
tmpl1.getSymk( iparm1, iparm2);
VERIFY(iparm1, F1_SYM_INTERN_K, "FileCreatPropList::getSymk");
VERIFY(iparm2, F1_SYM_LEAF_K, "FileCreatPropList::getSymk");
@@ -207,11 +203,7 @@ test_file_create(void)
VERIFY(parm2, F2_LENGTH_SIZE, "FileCreatPropList::getSizes");
int iparm1; /*file-creation parameters */
-#ifdef H5_WANT_H5_V1_4_COMPAT
- int iparm2; /*file-creation parameters */
-#else /* H5_WANT_H5_V1_4_COMPAT */
unsigned iparm2; /*file-creation parameters */
-#endif /* H5_WANT_H5_V1_4_COMPAT */
tmpl1->getSymk( iparm1, iparm2);
VERIFY(iparm1, F2_SYM_INTERN_K, "FileCreatPropList::getSymk");
VERIFY(iparm2, F2_SYM_LEAF_K, "FileCreatPropList::getSymk");
@@ -294,11 +286,7 @@ test_file_open(void)
VERIFY(parm2, F2_LENGTH_SIZE, "FileCreatPropList::getSizes");
int iparm1; /*file-creation parameters */
-#ifdef H5_WANT_H5_V1_4_COMPAT
- int iparm2; /*file-creation parameters */
-#else /* H5_WANT_H5_V1_4_COMPAT */
unsigned iparm2; /*file-creation parameters */
-#endif /* H5_WANT_H5_V1_4_COMPAT */
tmpl1.getSymk( iparm1, iparm2);
VERIFY(iparm1, F2_SYM_INTERN_K, "FileCreatPropList::getSymk");
VERIFY(iparm2, F2_SYM_LEAF_K, "FileCreatPropList::getSymk");