$darkmode
Public Member Functions | |
| T | get (Generator &g) const override |
| void | reset () override |
| void | to_json (Json &j) const override |
| void | from_conf (const Conf &c) override |
Public Member Functions inherited from cloe::component::Distribution< T > | |
| void | to_json (Json &j) const override |
| Entity (std::string name) | |
| Entity (std::string name, std::string desc) | |
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 | to_json (Json &j) const |
| Json | to_json () const |
Public Member Functions inherited from cloe::Entity | |
| Entity (std::string name) | |
| Entity (std::string name, std::string desc) | |
| const std::string & | name () const |
| void | set_name (std::string name) |
| const std::string & | description () const |
| void | set_description (std::string desc) |
Protected Member Functions | |
| Schema | schema_impl () override |
Protected Member Functions inherited from cloe::Entity | |
| virtual Logger | logger () const |
Additional Inherited Members | |
Protected Attributes inherited from cloe::Entity | |
| std::string | name_ |
| std::string | desc_ |
|
inlineoverridevirtual |
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.
|
inlineoverrideprotectedvirtual |
Return a new instance of the schema for this object.
This schema is then stored in schema_. This is called every time the object is created or moved, since Schema contains references to fields that (should be) in the object.
Reimplemented from fable::Confable.