summaryrefslogtreecommitdiffstats
path: root/c++/examples/h5tutr_crtdat.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2013-09-24 02:12:40 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2013-09-24 02:12:40 (GMT)
commit91df66782ea03416f4dae1a8171ede49fb016725 (patch)
treec8486e06ed06240e9f548d360903d6337151a8c6 /c++/examples/h5tutr_crtdat.cpp
parentab239810e1ae81f390a91dfbb3e5d68934efee55 (diff)
downloadhdf5-91df66782ea03416f4dae1a8171ede49fb016725.zip
hdf5-91df66782ea03416f4dae1a8171ede49fb016725.tar.gz
hdf5-91df66782ea03416f4dae1a8171ede49fb016725.tar.bz2
[svn-r24195] Description:
- Improved format/comments in tutorial examples - Added them to Makefile.* and run-c++-ex.sh.in Platforms tested: Linux/32 2.6 (jam) Linux/64 2.6 (koala)/PGI compilers
Diffstat (limited to 'c++/examples/h5tutr_crtdat.cpp')
-rw-r--r--c++/examples/h5tutr_crtdat.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/c++/examples/h5tutr_crtdat.cpp b/c++/examples/h5tutr_crtdat.cpp
index 592cc0c..d7f887e 100644
--- a/c++/examples/h5tutr_crtdat.cpp
+++ b/c++/examples/h5tutr_crtdat.cpp
@@ -35,32 +35,23 @@ const int RANK = 2;
int main (void)
{
-
// Try block to detect exceptions raised by any of the calls inside it
try
{
-
// Turn off the auto-printing when failure occurs so that we can
// handle the errors appropriately
-
Exception::dontPrint();
// Create a new file using the default property lists.
-
H5File file(FILE_NAME, H5F_ACC_TRUNC);
// Create the data space for the dataset.
-
hsize_t dims[2]; // dataset dimensions
dims[0] = NX;
dims[1] = NY;
DataSpace dataspace(RANK, dims);
- // Define the datatype to be used
- //IntType datatype(PredType::STD_I32BE);
-
// Create the dataset.
-
DataSet dataset = file.createDataSet(DATASET_NAME, PredType::STD_I32BE, dataspace);
} // end of try block