Audacity 3.2.0
|
Parameter must be one of the defined options. More...
#include <Validators.h>
Public Member Functions | |
void | AddOption (const wxString &option) |
void | AddOptions (const wxArrayString &options) |
bool | Validate (const wxVariant &v) override |
Judge whether the passed value satisfies the Validator. More... | |
wxString | GetDescription () const override |
Holder | GetClone () const override |
Public Member Functions inherited from Validator | |
Validator () | |
virtual | ~Validator () |
void | SetConverted (const wxVariant &v) |
const wxVariant & | GetConverted () |
virtual bool | Validate (const wxVariant &v) |
Judge whether the passed value satisfies the Validator. More... | |
virtual wxString | GetDescription () const |
virtual Holder | GetClone () const =0 |
Private Attributes | |
wxArrayString | mOptions |
Additional Inherited Members | |
Public Types inherited from Validator | |
using | Holder = std::unique_ptr< Validator > |
This MUST be overridden, to avoid slicing! More... | |
Parameter must be one of the defined options.
Definition at line 98 of file Validators.h.
|
inline |
Definition at line 104 of file Validators.h.
References mOptions.
|
inline |
Definition at line 108 of file Validators.h.
References mOptions.
|
inlineoverridevirtual |
Implements Validator.
Definition at line 129 of file Validators.h.
References mOptions.
|
inlineoverridevirtual |
Return a description (for error messages) should be of the form 'v must be $description'
Reimplemented from Validator.
Definition at line 117 of file Validators.h.
References anonymous_namespace{ExportPCM.cpp}::desc, mOptions, and wxT().
|
inlineoverridevirtual |
Judge whether the passed value satisfies the Validator.
Reimplemented from Validator.
Definition at line 112 of file Validators.h.
References make_iterator_range(), mOptions, and Validator::SetConverted().
|
private |
Definition at line 101 of file Validators.h.
Referenced by AddOption(), AddOptions(), GetClone(), GetDescription(), and Validate().