cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
Loading...
Searching...
No Matches
serializer.h File Reference
#include <concepts>
#include <fstream>
#include <istream>
#include <string>
#include "cppfig/status.h"
#include "cppfig/value.h"
Include dependency graph for serializer.h:
This graph shows which files directly or indirectly include this file:

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.