|
Simo 0.0.1
|
Base class for any Parameter. More...
#include <Parameter.h>
Public Member Functions | |
| boost::typeindex::type_index | type () const |
| virtual bool | validate () const =0 |
| virtual std::unique_ptr< Parameter > | clone () const =0 |
| bool | has_value () const |
| template<typename Self> | |
| Self & | has_value (this Self &self, const bool new_val) |
| virtual std::expected< Parameter *, std::string > | value_from_generic (const glz::generic_u64 &glz_value)=0 |
| Set stored value from glaze generic representation. | |
| virtual std::expected< glz::generic_u64, std::string > | value_to_generic () const =0 |
| Produce glaze generic representation of the value. | |
Protected Attributes | |
| bool | has_value_ = false |
Base class for any Parameter.
|
nodiscardpure virtual |
Set stored value from glaze generic representation.
Implemented in Simo::Parameter::ParameterTyped< T >.
|
nodiscardpure virtual |
Produce glaze generic representation of the value.
Implemented in Simo::Parameter::ParameterTyped< T >.