SpECTRE
v2024.12.16
|
Writes header info about the build, git commit, branch, etc. More...
#include <Header.hpp>
Public Member Functions | |
const std::string & | get_header () const |
std::string | get_env_variables () const |
Returns the environment variables at compile time of the simulation that produced the file. | |
std::string | get_build_info () const |
Returns the contents of the BuildInfo.txt file generated by CMake of the simulation that produced the file. | |
const std::string & | subfile_path () const override |
Return the path to the subfile where this object is stored. More... | |
virtual const std::string & | subfile_path () const =0 |
Return the path to the subfile where this object is stored. More... | |
Writes header info about the build, git commit, branch, etc.
A Header object is used to store the info_from_build() result in the HDF5 files. The Header is automatically added to every single file by the constructor of H5File.
You can read the header info out of an H5 file as shown in the example:
|
inlineoverridevirtual |
Return the path to the subfile where this object is stored.
Implements h5::Object.