|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
#include <concepts>#include <filesystem>#include <fstream>#include <istream>#include <iterator>#include <string>#include <string_view>#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. | |
| concept | cppfig::MergingSerializer |
| Concept for serializers that can update a document in place. | |
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::RenderFile (const std::string &path, const Value &data) -> std::string |
| Renders the file text for a Value tree. | |
| 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. | |