ГОСТ Р ИСОГГС 10303-26—2015
)
)
(3):
{
V,
3,
0,
100
)
)
С.10 Полная программа, выполняющая все примеры настоящего стандарта
/ / -
--------
--------------------------------------------- ...........- ....................................................................
// Main program that executes the examples found in the
// 1SO-10303-P26 specification.
/ /
// In addition some dump functions are supplied, but these are not
// complete in the sense that all aspects of HOF5 are covered.
// Please consult the HDF5 documentation for those aspects that are
// missing.
// Please make use of the b.5dump utility offered by the KDF group for
// a complete dump.
/ /
// Note:
// An application should close a datatype, dataspace, or dataset
// object once it is no longer needed.
// H5Tclose(datatype)
// H5Dclose(dataset)
// H5Sclose(dataspace)
// In this small prototype the closing of such objects has been
/ omitted.
// Reclaim of memory has also been omitted.
// Such a practice is certainly not recommended for a real application
// Please consult the HDF5 documentation for the details.
/ / --------------------------------------------------------------------- ....................................................................
♦include <stdio.h>
♦include <stdlib.h>
♦include <string.h>
♦include
♦include
"hdf5.h"
"examples.h”
long dump_dataset(hid_t mydataset);
long dump_compound(hid_t mycompound_type, hsize_t curr_offset,
char *mybuffer);
long dump_instance_by_reference<hid_t dataset_tid, long dataset_ir.dex,
long instance_index);
long dump_aggr_by_reference(hid_t obj_tid, hobj_ref_t myref);
long dump_vlen_data(hid_t datatype, long members, char *vlen_data);
void error_trap(char *file_name, long lineno);
/ / ------------------------- ---------- .......................................................................................................
♦define HDF5_i’ILK "0:/projects/Sim£>M/HDF5/data/HDF5_f iles/example .h5"
♦define REPORT_FILE "O:/projects/SimDM/HDF5/data/HDF5_file3/rep_file.txt"
FILE*rep_file;
54