diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2013-10-01 02:40:32 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2013-10-01 02:40:32 (GMT) |
commit | 85971108372c8ea1331d89092a8049aa68728fdb (patch) | |
tree | ff5b78ef9f7726ab8d79bd96d958b287ecbc4000 /c++/examples/h5tutr_rdwt.cpp | |
parent | 7fcd636cb37e493665191af5fbc876a6a012158a (diff) | |
download | hdf5-85971108372c8ea1331d89092a8049aa68728fdb.zip hdf5-85971108372c8ea1331d89092a8049aa68728fdb.tar.gz hdf5-85971108372c8ea1331d89092a8049aa68728fdb.tar.bz2 |
[svn-r24235] Description:
- Appended h5tutr_ to names of data files to avoid name clashing with
existing examples.
- Added example dependencies to Makefile.*
(pointed out by Allen)
Platforms tested:
SunOS 5.11 (emu) with gmake
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
Linux/64 2.6 (koala)/PGI compilers
Diffstat (limited to 'c++/examples/h5tutr_rdwt.cpp')
-rw-r--r-- | c++/examples/h5tutr_rdwt.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c++/examples/h5tutr_rdwt.cpp b/c++/examples/h5tutr_rdwt.cpp index e6e45b7..68c28ca 100644 --- a/c++/examples/h5tutr_rdwt.cpp +++ b/c++/examples/h5tutr_rdwt.cpp @@ -27,8 +27,8 @@ using namespace H5; #endif -const H5std_string FILE_NAME( "dset.h5" ); -const H5std_string DATASET_NAME( "dset" ); +const H5std_string FILE_NAME("h5tutr_dset.h5"); +const H5std_string DATASET_NAME("dset"); const int DIM0 = 4; // dataset dimensions const int DIM1 = 6; @@ -52,24 +52,24 @@ int main (void) Exception::dontPrint(); // Open an existing file and dataset. - H5File file( FILE_NAME, H5F_ACC_RDWR ); - DataSet dataset = file.openDataSet( DATASET_NAME ); + H5File file(FILE_NAME, H5F_ACC_RDWR); + DataSet dataset = file.openDataSet(DATASET_NAME); // Write the data to the dataset using default memory space, file // space, and transfer properties. - dataset.write( data, PredType::NATIVE_INT ); + dataset.write(data, PredType::NATIVE_INT); } // end of try block // catch failure caused by the H5File operations - catch( FileIException error ) + catch(FileIException error) { error.printError(); return -1; } // catch failure caused by the DataSet operations - catch( DataSetIException error ) + catch(DataSetIException error) { error.printError(); return -1; |