|
TRIQS/h5 1.3.0
C++ interface to HDF5
|
#include "./macros.hpp"#include "./group.hpp"#include "./stl/string.hpp"#include <complex>#include <string>Provides utilities for reading and writing hdf5_format tags.
An hdf5_format tag is a string that describes the type of object stored in an HDF5 file. A type T which is HDF5 readable/writeable should do one of the following:
Definition in file format.hpp.
Go to the source code of this file.
Functions | |
| template<typename T> | |
| void | h5::assert_hdf5_format (object obj, bool ignore_if_absent=false) |
| Assert that the hdf5_format tag attached to the given object is the same as the hdf5_format tag of the type T. | |
| template<typename T> | |
| void | h5::assert_hdf5_format (object obj, T const &t, bool ignore_if_absent=false) |
| Assert that the hdf5_format tag attached to the given object is the same as the hdf5_format tag of the type T using template argument deduction. | |
| void | h5::assert_hdf5_format_as_string (object obj, const char *tag_expected, bool ignore_if_absent=false) |
| Assert that the hdf5_format tag attached to the given object is the same as the given tag. | |
| template<typename T> | |
| std::string | h5::get_hdf5_format () |
| Get the hdf5_format tag of type T. | |
| template<typename T> | |
| std::string | h5::get_hdf5_format (T const &t) |
| Get the hdf5_format tag of type T using template argument deduction. | |
| std::string | h5::read_hdf5_format (object obj) |
| Read an hdf5_format tag from an HDF5 attribute with the name 'Format'. | |
| void | h5::read_hdf5_format (object obj, std::string &s) |
| Read an hdf5_format tag from an HDF5 attribute with the name 'Format'. | |
| void | h5::read_hdf5_format_from_key (group g, std::string const &key, std::string &s) |
| Read an hdf5_format tag from an HDF5 attribute with the name 'Format'. | |
| template<typename T> | |
| void | h5::write_hdf5_format (object obj) |
| Write an hdf5_format tag for type T to an HDF5 attribute with the name 'Format'. | |
| template<typename T> | |
| void | h5::write_hdf5_format (object obj, T const &t) |
| Write an hdf5_format tag for type T to an HDF5 attribute with the name 'Format' using template argument deduction. | |
| void | h5::write_hdf5_format_as_string (object obj, std::string const &s) |
| Write a std::string to an HDF5 attribute with the name 'Format'. | |