summaryrefslogtreecommitdiffstats
path: root/src/H5Spublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-02-25 18:48:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-02-25 18:48:33 (GMT)
commitfaa3f5739e0b52d84d119791b6859fe610b76d37 (patch)
tree6c1849a3516a7bf19a4f33af1868bb55e536c3d3 /src/H5Spublic.h
parent1f96b24ba70e33d1c87dd5773d3ef18d1f46a3c5 (diff)
downloadhdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.zip
hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.gz
hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.bz2
[svn-r296] Switched prefix for dataspaces from H5P to H5S
Diffstat (limited to 'src/H5Spublic.h')
-rw-r--r--src/H5Spublic.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/H5Spublic.h b/src/H5Spublic.h
new file mode 100644
index 0000000..3fe0a31
--- /dev/null
+++ b/src/H5Spublic.h
@@ -0,0 +1,56 @@
+/****************************************************************************
+ * NCSA HDF *
+ * Software Development Group *
+ * 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 file. *
+ * *
+ ****************************************************************************/
+
+/*
+ * This file contains public declarations for the H5S module.
+ */
+#ifndef _H5pproto_H
+#define _H5Sproto_H
+
+/* Public headers needed by this file */
+#include <H5public.h>
+#include <H5Apublic.h>
+
+/* Define atomic datatypes */
+#define H5S_ALL (-2)
+#define H5S_UNLIMITED 0
+
+/* Different types of dataspaces */
+typedef enum H5S_class_t {
+ H5S_NO_CLASS = -1, /*error */
+ H5S_SCALAR = 0, /*scalar variable */
+ H5S_SIMPLE = 1, /*simple data space */
+ H5S_COMPLEX = 2 /*complex data space */
+} H5S_class_t;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Functions in H5S.c */
+hid_t H5Screate_simple (int rank, const size_t dims[], const size_t maxdims[]);
+hid_t H5Scopy (hid_t space_id);
+herr_t H5Sclose (hid_t space_id);
+size_t H5Sget_npoints (hid_t space_id);
+int H5Sget_ndims (hid_t space_id);
+int H5Sget_dims (hid_t space_id, size_t dims[]);
+hbool_t H5Sis_simple (hid_t space_id);
+herr_t H5Sset_space (hid_t space_id, int rank, const size_t *dims);
+herr_t H5Sset_hyperslab(hid_t sid, const int *start, const size_t *count,
+ const size_t *stride);
+int H5Sget_hyperslab (hid_t sid, int offset[]/*out*/,
+ size_t size[]/*out*/, size_t stride[]/*out*/);
+
+#ifdef __cplusplus
+}
+#endif
+#endif