summaryrefslogtreecommitdiffstats
path: root/c++/examples/h5tutr_rdwt.cpp
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2013-10-21 21:48:48 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2013-10-21 21:48:48 (GMT)
commitf09d3e86b3753ea6c6b2c855248481b0b3581ac4 (patch)
tree72581aae0e194e991e8281bf315afdf7ae401122 /c++/examples/h5tutr_rdwt.cpp
parent2b18e934c6812fd1b487ebfebf9240b009c3e4ae (diff)
downloadhdf5-f09d3e86b3753ea6c6b2c855248481b0b3581ac4.zip
hdf5-f09d3e86b3753ea6c6b2c855248481b0b3581ac4.tar.gz
hdf5-f09d3e86b3753ea6c6b2c855248481b0b3581ac4.tar.bz2
[svn-r24337] Bring revisions #24200 - #24333 from trunk.
Diffstat (limited to 'c++/examples/h5tutr_rdwt.cpp')
-rw-r--r--c++/examples/h5tutr_rdwt.cpp14
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;