Object-oriented Scientific Computing Library: Version 0.910
File I/O with HDF5

The class hdf_file facilitates I/O of data to hdf files. This class implements a simple way to I/O basic data types and O2scl data types. All files created by the hdf_file class are normal HDF5 files, and can be manipulated in the usual way, for example with h5dump command-line tool. Users can easily mix code which performs I/O with hdf_file and other O2scl functions with their own HDF code. The sole caveat is that O2scl cannot parse generic HDF5 files, so that HDF files which contain data not output through O2scl cannot always be read by O2scl .

Objects are stored by refering to their dataset name. I/O for basic objects is provided directly in the hdf_file class, I/O for table, table3d, and other related objects is documented in hdf_io.h.

O2scl formats complicated data types for HDF I/O by combining basic data into groups. For that reason, one cannot use O2scl to read or write HDF files where groups have the same name as a dataset in the current HDF id. All O2scl groups in HDF files come with a string named o2scl_type, which refers to the type of object which has been written to the HDF file as a group.

There are some current limitations regarding the matching of error handling policies between O2scl and the HDF library. HDF functions do not always call the O2scl error handler and thus do not always throw O2scl exceptions.

Idea for Future:
Create an HDF file I/O example.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.