Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Classes | Functions
AttrRecorderInterface.h File Reference

Declare interface for generic attribute recorder interface. More...

#include <cstdio>
#include <string>
#include <string_view>
#include "../utils/error_handling.h"
Include dependency graph for AttrRecorderInterface.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

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.

Function Documentation

◆ encode_toml_key()

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.

◆ encode_toml_str()

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.