$darkmode
#include <stack.hpp>
Public Member Functions | |
| CONFABLE_SCHEMA (DefaultConf) | |
Public Member Functions inherited from fable::Confable | |
| Confable (const Confable &) noexcept | |
| Confable (Confable &&) noexcept=default | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () 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 () |
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!