$darkmode
Public Member Functions | |
| void | enroll (Registrar &r) override |
| void | init (const Sync &, const Vehicle &v) override |
| void | check (const Sync &s, const Vehicle &v) override |
Public Member Functions inherited from cloe::controller::Checker | |
| Checker (const std::string &name) | |
| size_t | num_failures () const |
| virtual void | set_fail_callback (std::function< void(const Sync &s)> f) |
| virtual void | fail (const Sync &s, std::string &&name, Json &&j) |
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) |
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 |
Protected Member Functions | |
| void | private_fail (const Sync &s) override |
Protected Member Functions inherited from cloe::Entity | |
| virtual Logger | logger () const |
Protected Member Functions inherited from fable::Confable | |
| virtual Schema | schema_impl () |
Additional Inherited Members | |
Protected Attributes inherited from cloe::controller::Checker | |
| size_t | num_failures_ {0} |
| std::map< std::string, std::vector< FailurePtr > > | failures_ {} |
| std::function< void(const Sync &s)> | failure_callback_ |
Protected Attributes inherited from cloe::Entity | |
| std::string | name_ |
| std::string | desc_ |
|
inlineoverrideprotectedvirtual |
Trigger any private events on type-specific failure.
This is called during the fail() method and provides a way to add a private event trigger in addition to the generic Failure event. Using this method instead of overriding fail() provides us two advantages:
fail() method can print an error message first, then raise the type-specific event, followed by the generic failure event.fail() requires the developer to remember to call Checker::fail(). Reimplemented from cloe::controller::Checker.