|
rapidyaml
0.7.1
parse and emit YAML, and do it fast
|
Contains information on how to serialize and deserialize fundamental types, user scalar types, user container types and interop with std scalar/container types.
Contains information on how to serialize and deserialize fundamental types, user scalar types, user container types and interop with std scalar/container types.
ryml provides serialization/deserialization utilities for all fundamental data types in Charconv utilities .
To serialize/deserialize any non-fundamental type will require that you instruct ryml on how to achieve this. That will differ based on whether the type is scalar or container.
See Serialize/deserialize scalar types for serializing user scalar types (ie leaf nodes in the YAML tree, containing a string representation):
to_chars()/from_chars() functions.to_chars()/from_chars() for the fundamental types.ryml does not use any STL containers internally, but it can be used to serialize and deserialize these containers. See sample::sample_std_types() for an example. See the header ryml_std.hpp and also the headers it includes:
std::string: ext/c4core/src/c4/std/string.hppstd::string_view: ext/c4core/src/c4/std/string_view.hppstd::vector<char>: ext/c4core/src/c4/std/vector.hppstd::vector<T>: src/c4/yml/std/vector.hppstd::map<K,V>: src/c4/yml/std/map.hpp