$darkmode
confable.hpp File Reference
#include <memory>
#include <optional>
#include <fable/conf.hpp>
#include <fable/fable_fwd.hpp>
Include dependency graph for confable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fable::Confable
 
struct  nlohmann::adl_serializer< fable::Confable >
 

Macros

#define CONFABLE_FRIENDS(xType)
 
#define CONFABLE_SCHEMA(xType)
 

Detailed Description

Macro Definition Documentation

◆ CONFABLE_FRIENDS

#define CONFABLE_FRIENDS (   xType)
Value:
using ::fable::Confable::to_json; \
friend void to_json(::fable::Json& j, const xType& t) { t.to_json(j); } \
friend void from_json(const ::fable::Json& j, xType& t) { t.from_conf(::fable::Conf{j}); }
Definition: conf.hpp:82
nlohmann::json Json
Definition: fable_fwd.hpp:35

◆ CONFABLE_SCHEMA

#define CONFABLE_SCHEMA (   xType)
Value:
CONFABLE_FRIENDS(xType) \
::fable::Schema schema_impl() override
Definition: schema.hpp:173