22#ifndef GENERIC_CONTAINER_INTERFACE_YAML_HH
23#define GENERIC_CONTAINER_INTERFACE_YAML_HH
26#pragma clang diagnostic ignored "-Wpoison-system-directories"
55 string_view file_name,
58 ifstream stream(file_name.data());
99 istringstream stream(DATA);
117 ostringstream stream;
The GenericContainer class provides a flexible container for storing heterogeneous data types.
Definition GenericContainer.hh:614
void to_yaml(ostream_type &stream, string_view prefix="") const
Serializes the contents of the GenericContainer into YAML format and writes it to the provided output...
void clear()
Clears the content of the GenericContainer, resetting it to an empty state.
Definition GenericContainer.cc:592
bool from_yaml(istream_type &stream)
Loads the contents of the GenericContainer from a YAML-formatted stream.
void GC_to_YAML(GenericContainer const &gc, std::string &res)
Definition GenericContainerInterface_yaml.hh:116
bool file_YAML_to_GC(string_view file_name, GenericContainer &gc)
Definition GenericContainerInterface_yaml.hh:54
bool YAML_to_GC(istream_type &stream, GenericContainer &gc)
Definition GenericContainerInterface_yaml.hh:75
Definition GenericContainer.cc:68
std::basic_ostream< char > ostream_type
Alias for a character-based output stream.
Definition GenericContainer.hh:109
std::basic_istream< char > istream_type
Alias for a character-based input stream.
Definition GenericContainer.hh:118