summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/examples/Makefile.in135
-rw-r--r--hl/examples/ex_lite1.c29
-rw-r--r--hl/examples/ex_lite2.c25
-rw-r--r--hl/examples/ex_lite3.c25
-rw-r--r--hl/examples/ex_table_01.c2
-rw-r--r--hl/examples/ex_table_02.c2
-rw-r--r--hl/examples/ex_table_03.c2
-rw-r--r--hl/examples/ex_table_04.c2
-rw-r--r--hl/examples/ex_table_05.c2
-rw-r--r--hl/examples/ex_table_06.c2
-rw-r--r--hl/examples/ex_table_07.c2
-rw-r--r--hl/examples/ex_table_08.c2
-rw-r--r--hl/examples/ex_table_09.c2
-rw-r--r--hl/examples/ex_table_10.c2
-rw-r--r--hl/examples/ex_table_11.c2
-rw-r--r--hl/examples/ex_table_12.c2
16 files changed, 189 insertions, 49 deletions
diff --git a/hl/examples/Makefile.in b/hl/examples/Makefile.in
index a2a43df..a8bd1c2 100644
--- a/hl/examples/Makefile.in
+++ b/hl/examples/Makefile.in
@@ -35,7 +35,11 @@ hdf5_builddir=$(top_builddir)/src
## List all source files here. The list of object files will be
## created by replacing the `.cpp' with a `.lo'. This list is necessary
## for building automatic dependencies.
-TEST_SRC=ex_lite1.c ex_lite2.c ex_lite3.c
+TEST_SRC=ex_lite1.c ex_lite2.c ex_lite3.c ex_image1.c ex_image2.c \
+ ex_table_01.c ex_table_02.c ex_table_03.c ex_table_04.c \
+ ex_table_05.c ex_table_06.c ex_table_07.c ex_table_08.c \
+ ex_table_09.c ex_table_10.c ex_table_11.c ex_table_12.c
+
TEST_OBJ=$(TEST_SRC:.c=.lo)
EXAMPLE_PROGS=$(TEST_SRC)
@@ -78,4 +82,133 @@ ex_lite3: $(srcdir)/ex_lite3.c
$(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
fi
+ex_image1: $(srcdir)/ex_image1.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_image2: $(srcdir)/ex_image2.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_01: $(srcdir)/ex_table_01.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_02: $(srcdir)/ex_table_02.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_03: $(srcdir)/ex_table_03.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_04: $(srcdir)/ex_table_04.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_05: $(srcdir)/ex_table_05.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_06: $(srcdir)/ex_table_06.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_07: $(srcdir)/ex_table_07.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_08: $(srcdir)/ex_table_08.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_09: $(srcdir)/ex_table_09.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_10: $(srcdir)/ex_table_10.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_11: $(srcdir)/ex_table_11.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+ex_table_12: $(srcdir)/ex_table_12.c
+ @if test "X$(PARALLEL)" = "Xno"; then \
+ echo $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5CC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ else \
+ echo $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ $(H5PCC) $(CPPFLAGS) -o $@ $(srcdir)/$@.c; \
+ fi
+
+
+
+
@CONCLUDE@
diff --git a/hl/examples/ex_lite1.c b/hl/examples/ex_lite1.c
index 85a011d..6915b59 100644
--- a/hl/examples/ex_lite1.c
+++ b/hl/examples/ex_lite1.c
@@ -1,15 +1,17 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by the Board of Trustees of the University of Illinois. *
+ * All rights reserved. *
+ * *
+ * This file is part of HDF5. The full HDF5 copyright notice, including *
+ * terms governing use, modification, and redistribution, is contained in *
+ * the files COPYING and Copyright.html. COPYING can be found at the root *
+ * of the source code distribution tree; Copyright.html can be found at the *
+ * root level of an installed copy of the electronic HDF5 document set and *
+ * is linked from the top-level documents page. It can also be found at *
+ * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
+ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/****************************************************************************
- * NCSA HDF *
- * Scientific Data Technologies *
- * National Center for Supercomputing Applications *
- * University of Illinois at Urbana-Champaign *
- * 605 E. Springfield, Champaign IL 61820 *
- * *
- * For conditions of distribution and use, see the accompanying *
- * hdf/COPYING f. *
- * *
- ****************************************************************************/
#include "H5LT.h"
@@ -23,10 +25,13 @@ int main( void )
int data[6]={1,2,3,4,5,6};
herr_t status;
+ /* create a HDF5 file */
file_id = H5Fcreate ("ex_lite1.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
+ /* create and write an integer type dataset named "dset" */
status = H5LTmake_dataset(file_id,"/dset",RANK,dims,H5T_NATIVE_INT,data);
-
+
+ /* close file */
status = H5Fclose (file_id);
return 0;
diff --git a/hl/examples/ex_lite2.c b/hl/examples/ex_lite2.c
index 990cf1f..eee213d 100644
--- a/hl/examples/ex_lite2.c
+++ b/hl/examples/ex_lite2.c
@@ -1,15 +1,16 @@
-
-/****************************************************************************
- * NCSA HDF *
- * Scientific Data Technologies *
- * National Center for Supercomputing Applications *
- * University of Illinois at Urbana-Champaign *
- * 605 E. Springfield, Champaign IL 61820 *
- * *
- * For conditions of distribution and use, see the accompanying *
- * hdf/COPYING f. *
- * *
- ****************************************************************************/
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by the Board of Trustees of the University of Illinois. *
+ * All rights reserved. *
+ * *
+ * This file is part of HDF5. The full HDF5 copyright notice, including *
+ * terms governing use, modification, and redistribution, is contained in *
+ * the files COPYING and Copyright.html. COPYING can be found at the root *
+ * of the source code distribution tree; Copyright.html can be found at the *
+ * root level of an installed copy of the electronic HDF5 document set and *
+ * is linked from the top-level documents page. It can also be found at *
+ * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
+ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "H5LT.h"
diff --git a/hl/examples/ex_lite3.c b/hl/examples/ex_lite3.c
index c5c8bfb..34c798a 100644
--- a/hl/examples/ex_lite3.c
+++ b/hl/examples/ex_lite3.c
@@ -1,15 +1,16 @@
-
-/****************************************************************************
- * NCSA HDF *
- * Scientific Data Technologies *
- * National Center for Supercomputing Applications *
- * University of Illinois at Urbana-Champaign *
- * 605 E. Springfield, Champaign IL 61820 *
- * *
- * For conditions of distribution and use, see the accompanying *
- * hdf/COPYING f. *
- * *
- ****************************************************************************/
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Copyright by the Board of Trustees of the University of Illinois. *
+ * All rights reserved. *
+ * *
+ * This file is part of HDF5. The full HDF5 copyright notice, including *
+ * terms governing use, modification, and redistribution, is contained in *
+ * the files COPYING and Copyright.html. COPYING can be found at the root *
+ * of the source code distribution tree; Copyright.html can be found at the *
+ * root level of an installed copy of the electronic HDF5 document set and *
+ * is linked from the top-level documents page. It can also be found at *
+ * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
+ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "H5LT.h"
#include <stdlib.h>
diff --git a/hl/examples/ex_table_01.c b/hl/examples/ex_table_01.c
index 0b4cc9c..ac7b73c 100644
--- a/hl/examples/ex_table_01.c
+++ b/hl/examples/ex_table_01.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_02.c b/hl/examples/ex_table_02.c
index 16cf33e..8cb38bb 100644
--- a/hl/examples/ex_table_02.c
+++ b/hl/examples/ex_table_02.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_03.c b/hl/examples/ex_table_03.c
index fbe66a1..55b99d3 100644
--- a/hl/examples/ex_table_03.c
+++ b/hl/examples/ex_table_03.c
@@ -13,7 +13,7 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_04.c b/hl/examples/ex_table_04.c
index f31cc40..fefc216 100644
--- a/hl/examples/ex_table_04.c
+++ b/hl/examples/ex_table_04.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_05.c b/hl/examples/ex_table_05.c
index e658ee3..0bf85f5 100644
--- a/hl/examples/ex_table_05.c
+++ b/hl/examples/ex_table_05.c
@@ -13,7 +13,7 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_06.c b/hl/examples/ex_table_06.c
index 8d48b3c..af36739 100644
--- a/hl/examples/ex_table_06.c
+++ b/hl/examples/ex_table_06.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_07.c b/hl/examples/ex_table_07.c
index f577c59..9681e6a 100644
--- a/hl/examples/ex_table_07.c
+++ b/hl/examples/ex_table_07.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_08.c b/hl/examples/ex_table_08.c
index 0be5bbc..9bf6d53 100644
--- a/hl/examples/ex_table_08.c
+++ b/hl/examples/ex_table_08.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_09.c b/hl/examples/ex_table_09.c
index 164f6aa..700c4ce 100644
--- a/hl/examples/ex_table_09.c
+++ b/hl/examples/ex_table_09.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_10.c b/hl/examples/ex_table_10.c
index b1e6705..d493f3e 100644
--- a/hl/examples/ex_table_10.c
+++ b/hl/examples/ex_table_10.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_11.c b/hl/examples/ex_table_11.c
index 4d12fd7..8804c36 100644
--- a/hl/examples/ex_table_11.c
+++ b/hl/examples/ex_table_11.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------
diff --git a/hl/examples/ex_table_12.c b/hl/examples/ex_table_12.c
index 3f44bf1..7630f31 100644
--- a/hl/examples/ex_table_12.c
+++ b/hl/examples/ex_table_12.c
@@ -12,7 +12,7 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "H5TB.h"
+#include "H5TA.h"
#include <stdlib.h>
/*-------------------------------------------------------------------------