SpECTRE  2021.08.02
h5::Version Class Reference

Used to store the version of the file. More...

#include <Version.hpp>

Public Member Functions

uint32_t get_version () const noexcept
 

Detailed Description

Used to store the version of the file.

A Version object should be stored inside each H5 object that is to represent a file, e.g. Dat, or Text.

Example

To write the version use:

my_file.insert<h5::Version>("/the_version", version_number);
Opens an HDF5 file for access and allows manipulation of data.
Definition: File.hpp:60
Used to store the version of the file.
Definition: Version.hpp:31

To read the version use:

const auto& const_version = my_file.get<h5::Version>("/the_version");