Audacity  2.2.0
BoolValidator Class Referencefinal

Parameter must be a boolean. More...

#include <Validators.h>

Inheritance diagram for BoolValidator:

Public Member Functions

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 ()

Additional Inherited Members

- Public Types inherited from Validator
using Holder = std::unique_ptr< Validator >
 This MUST be overridden, to avoid slicing! More...

Detailed Description

Parameter must be a boolean.

Member Function Documentation

Holder BoolValidator::GetClone ( ) const

Implements Validator.

wxString BoolValidator::GetDescription ( ) const

Return a description (for error messages) should be of the form 'v must be $description'

Reimplemented from Validator.

bool BoolValidator::Validate ( const wxVariant &  v)

Judge whether the passed value satisfies the Validator.

Reimplemented from Validator.

References Validator::GetConverted(), and Validator::SetConverted().

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