From 04ed08e223b1eb9a9b9073bb07f92707b40bd2fd Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 17 Sep 2001 16:36:23 -0500 Subject: [svn-r4445] Purpose: Feature Description: Updated with the added feature of H5Pset_fapl_split. Added two examples too. Platforms tested: IE 5 plus eyeball. --- doc/html/RM_H5P.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/html/RM_H5P.html b/doc/html/RM_H5P.html index ba8347d..9a89611 100644 --- a/doc/html/RM_H5P.html +++ b/doc/html/RM_H5P.html @@ -3185,11 +3185,21 @@ facilitate moving easily between them. fapl_id is a file access property list identifier.

meta_ext is the filename extension for the metadata file. + The extension is appended to the name passed to H5FDopen, + usually from H5Fcreate or H5Fopen, + to form the name of the metadata file. + If the string %s is used in the extension, it works like the + name generator as in H5Pset_fapl_multi.

meta_plist_id is the file access property list identifier for the metadata file.

raw_ext is the filename extension for the raw data file. + The extension is appended to the name passed to H5FDopen, + usually from H5Fcreate or H5Fopen, + to form the name of the rawdata file. + If the string %s is used in the extension, it works like the + name generator as in H5Pset_fapl_multi.

raw_plist_id is the file access property list identifier for the raw data file. @@ -3210,6 +3220,25 @@ facilitate moving easily between them.

Returns:
Returns a non-negative value if successful. Otherwise returns a negative value. +
Example: +
+
+/* Example 1: Both metadata and rawdata files are in the same  */
+/*    directory.   Use Station1-m.h5 and Station1-r.h5 as      */
+/*    the metadata and rawdata files.                          */
+hid_t fapl, fid;
+fapl = H5Pcreate(H5P_FILE_ACCESS);
+H5Pset_fapl_split(fapl, "-m.h5", H5P_DEFAULT, "-r.h5", H5P_DEFAULT);
+fid=H5Fcreate("Station1",H5F_ACC_TRUNC,H5P_DEFAULT,fapl);
+
+/* Example 2: metadata and rawdata files are in different      */
+/*    directories.  Use PointA-m.h5 and /pfs/PointA-r.h5 as    */
+/*    the metadata and rawdata files.                          */
+hid_t fapl, fid;
+fapl = H5Pcreate(H5P_FILE_ACCESS);
+H5Pset_fapl_split(fapl, "-m.h5", H5P_DEFAULT, "/pfs/%s-r.h5", H5P_DEFAULT);
+fid=H5Fcreate("PointA",H5F_ACC_TRUNC,H5P_DEFAULT,fapl);
+