$darkmode
cloe::DefaultConf Struct Reference

#include <stack.hpp>

Inheritance diagram for cloe::DefaultConf:
Collaboration diagram for cloe::DefaultConf:

Public Member Functions

 CONFABLE_SCHEMA (DefaultConf)
 
- 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 from_conf (const Conf &c)
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Public Attributes

boost::optional< std::string > name
 
boost::optional< std::string > binding
 
Conf args
 

Additional Inherited Members

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

Detailed Description

DefaultConf contains a black-box configuration for a combination of a binding and a name, both of which are optional.

This will be applied when instantiating a plugin, and will fail then if it is incorrect. The Conf is preserved, which allows for errors to be correctly pin-pointed. It should be noted that not specifying name or binding will cause the conf to be applied to all instantiations, which probably isn't a good idea!


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