Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IValidator Class Referenceabstract

#include <ArgsParser.h>

Inheritance diagram for IValidator:

Public Member Functions

 IValidator (ArgType argType)
 
virtual bool validate (const std::string &value) const =0
 
virtual std::string errorMessage () const =0
 
virtual ~IValidator ()=default
 

Protected Attributes

ArgType type
 

Detailed Description

Definition at line 20 of file ArgsParser.h.

Constructor & Destructor Documentation

◆ IValidator()

IValidator::IValidator ( ArgType  argType)
inlineexplicit

Definition at line 24 of file ArgsParser.h.

◆ ~IValidator()

virtual IValidator::~IValidator ( )
virtualdefault

Member Function Documentation

◆ errorMessage()

virtual std::string IValidator::errorMessage ( ) const
pure virtual

Implemented in RangeValidator, and AllowedValuesValidator.

◆ validate()

virtual bool IValidator::validate ( const std::string &  value) const
pure virtual

Implemented in RangeValidator, and AllowedValuesValidator.

Member Data Documentation

◆ type

ArgType IValidator::type
protected

Definition at line 22 of file ArgsParser.h.


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