Simo 0.0.1
Loading...
Searching...
No Matches
Simo::Parameter::Parameter Class Referenceabstract

Base class for any Parameter. More...

#include <Parameter.h>

Inheritance diagram for Simo::Parameter::Parameter:
Simo::Parameter::ParameterTyped< T >

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

Detailed Description

Base class for any Parameter.

Member Function Documentation

◆ value_from_generic()

virtual std::expected< Parameter *, std::string > Simo::Parameter::Parameter::value_from_generic ( const glz::generic_u64 & glz_value)
nodiscardpure virtual

Set stored value from glaze generic representation.

Implemented in Simo::Parameter::ParameterTyped< T >.

◆ value_to_generic()

virtual std::expected< glz::generic_u64, std::string > Simo::Parameter::Parameter::value_to_generic ( ) const
nodiscardpure virtual

Produce glaze generic representation of the value.

Implemented in Simo::Parameter::ParameterTyped< T >.


The documentation for this class was generated from the following file: