Describes a field of Object.
More...
#include <config_value_field.hpp>
|
|
using | object_type = Object |
|
|
virtual bool | has_default () const noexcept=0 |
| | Returns whether this field has a default value.
|
|
virtual string_view | name () const noexcept=0 |
| | Returns the name of this field.
|
|
virtual config_value | get (const Object &object) const =0 |
| | Returns the value of this field in object as config value.
|
|
virtual bool | valid_input (const config_value &x) const =0 |
| | Returns whether calling set with x would succeed.
|
| virtual bool | set (Object &object, const config_value &x) const =0 |
| | Tries to set this field in object to x.
|
| virtual void | set_default (Object &object) const =0 |
| | Restores the default value for this field in object.
|
|
virtual void | parse_cli (string_parser_state &ps, Object &object, bool is_nested) const =0 |
| | Parses the content for this field in object from ps.
|
template<class Object>
class caf::config_value_field< Object >
Describes a field of Object.
◆ set()
Tries to set this field in object to x.
- Returns
- true on success, false otherwise.
◆ set_default()
Restores the default value for this field in object.
- Precondition
- has_default()
The documentation for this class was generated from the following file:
- /build/actor-framework-Z9pIPl/actor-framework-0.17.6/libcaf_core/caf/config_value_field.hpp