|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
#include <concepts>#include <fstream>#include <istream>#include <string>#include "cppfig/status.h"#include "cppfig/value.h"Go to the source code of this file.
Namespaces | |
| namespace | cppfig |
| C++20 compile-time type-safe configuration library. | |
Concepts | |
| concept | cppfig::Serializer |
| Concept for serializer types. | |
Functions | |
| template<Serializer S> | |
| auto | cppfig::ReadFile (const std::string &path) -> StatusOr< Value > |
| Helper to read a file into a Value tree via a serializer. | |
| template<Serializer S> | |
| auto | cppfig::WriteFile (const std::string &path, const Value &data) -> Status |
| Helper to write a Value tree to a file via a serializer. | |