$darkmode
cloe::PersistentConfable Class Reference

#include <stack.hpp>

Inheritance diagram for cloe::PersistentConfable:
Collaboration diagram for cloe::PersistentConfable:

Public Member Functions

const Confconf () const
 
void from_conf (const Conf &c)
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Protected Attributes

Conf conf_
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

Detailed Description

PersistentConfable holds on to the last Conf that was used on it, so that in the case of later problems we have a handle on the Conf responsible. This doesn't work well if multiple Confs are applied before evaluation.

Member Function Documentation

◆ from_conf()

void cloe::PersistentConfable::from_conf ( const Conf c)
inlinevirtual

Deserialize a Confable from a Conf.

Unless you have special needs, it is recommended to implement

Schema schema_impl()

and use the default implementation of this.

Reimplemented from fable::Confable.

Here is the call graph for this function:

The documentation for this class was generated from the following file: