|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Declare interface for generic attribute recorder interface. More...
#include <cstdio>#include <string>#include <string_view>#include "../utils/error_handling.h"

Go to the source code of this file.
Classes | |
| class | AttrRecorderInterface |
| class | TextAttrRecorder |
Functions | |
| std::string | io_detail::encode_toml_key (std::string_view key) |
| std::string | io_detail::encode_toml_str (std::string_view s) |
Declare interface for generic attribute recorder interface.
The main purpose of this file is declare AttrRecorderInterface.
While we are at it, we also declare TextAttrRecorder, the wrapper around std::FILE that implements the AttrRecorderInterface interface.
We explicitly choose NOT to implement the equivalent for hdf5 files; that wrapper class is instead implemented in close proximity to other HDF5 logic.
| std::string io_detail::encode_toml_key | ( | std::string_view | key | ) |
Construct the proper toml representation of the specified key
This performs any necessary escaping.
| std::string io_detail::encode_toml_str | ( | std::string_view | s | ) |
Construct the proper toml representation of the specified string
This performs any necessary escaping.