Load (instantiate) an object of type T from the information in an HDF5 file.
Load (instantiate) an object of type T from the information in an HDF5 file. The IO metadata present in the file, as well as the file and group with the file, are provided as arguments, so that implementations can read additional data that might be required for correct object instantiation.
IO Metadata about the concrete implementation, as present in the HDF5 file.
the HDF5 file containing the information about the object to be constructed.
the HDF5 group containing the information about the object to be constructed.
an object of type T corresponding to the provided IO metadata and initialized according to the information present in the file (wrapped in a Success]), or a Failure indicating the cause of the failure
Save all required information about an object to an HDF5 file, so that the object can later be reconstructed using the Hdf5IOHandler.load method.
Save all required information about an object to an HDF5 file, so that the object can later be reconstructed using the Hdf5IOHandler.load method. Note that implementations do not need to care about saving the object's IO metadata, as this is taken care of by the framework. Thus, if the object to be stored does not require any further parameterization, this method does not need to be overridden (there is a default no-op implementation). Otherwise, it is strongly advised to follow these rules in the implementation:
- Do not write data anywhere except in the provided group (or subgroups thereof). In other words, do not store data in parent of sibling groups of h5Group
.
- Do not store attributes directly attached to h5Group
, as they might clash with the attributes used internally by the framework.
- There are no further limitations, i.e., you are free to create values and subgroups, or anything else, in h5Group
h5Group itself.
the object about which information is to be stored.
the HDF5 file to save the information to.
the group under which to save the information in the HDF5 file.
Success or Failure
Trait providing methods for serializing/deserializing objects of type T to/from HDF5 files.
the type of objects which can be constructed from the information present in HDF5 files, and saved into such files.