![]() |
Audacity 3.2.0
|
Class that maps parameter names to default values and validators. More...
#include <CommandSignature.h>
Public Member Functions | |
| CommandSignature () | |
| ~CommandSignature () | |
| void | AddParameter (const wxString &name, const wxVariant &dft, std::unique_ptr< Validator > &&valid) |
| ParamValueMap | GetDefaults () const |
| Validator & | GetValidator (const wxString ¶mName) |
Private Member Functions | |
| CommandSignature (const CommandSignature &)=delete | |
| CommandSignature & | operator= (const CommandSignature &)=delete |
Private Attributes | |
| ParamValueMap | mDefaults |
| ValidatorMap | mValidators |
Class that maps parameter names to default values and validators.
Definition at line 28 of file CommandSignature.h.
|
privatedelete |
|
explicitdefault |
| CommandSignature::~CommandSignature | ( | ) |
Definition at line 21 of file CommandSignature.cpp.
| void CommandSignature::AddParameter | ( | const wxString & | name, |
| const wxVariant & | dft, | ||
| std::unique_ptr< Validator > && | valid | ||
| ) |
Definition at line 25 of file CommandSignature.cpp.
References mDefaults, mValidators, name, and wxT().
Referenced by BatchEvalCommandType::BuildSignature().
| ParamValueMap CommandSignature::GetDefaults | ( | ) | const |
Definition at line 42 of file CommandSignature.cpp.
References mDefaults.
Referenced by CommandBuilder::BuildCommand().
| Validator & CommandSignature::GetValidator | ( | const wxString & | paramName | ) |
Definition at line 47 of file CommandSignature.cpp.
References mValidators.
Referenced by CommandImplementation::SetParameter().
|
privatedelete |
|
private |
Definition at line 31 of file CommandSignature.h.
Referenced by AddParameter(), and GetDefaults().
|
private |
Definition at line 32 of file CommandSignature.h.
Referenced by AddParameter(), and GetValidator().