|  | Audacity 3.2.0
    | 
SettingsVisitor that retrieves a JSON format definition of a command's parameters. More...
#include <ShuttleGetDefinition.h>
| Public Member Functions | |
| ShuttleGetDefinition (CommandMessageTarget &target) | |
| bool | IsOptional () | 
| ConstSettingsVisitor & | Optional (const bool &var) override | 
| void | Define (bool var, const wxChar *key, bool vdefault, bool vmin, bool vmax, bool vscl) override | 
| void | Define (int var, const wxChar *key, int vdefault, int vmin, int vmax, int vscl) override | 
| void | Define (size_t var, const wxChar *key, int vdefault, int vmin, int vmax, int vscl) override | 
| void | Define (float var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl) override | 
| void | Define (double var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl) override | 
| void | Define (double var, const wxChar *key, double vdefault, double vmin, double vmax, double vscl) override | 
| void | Define (const wxString &var, const wxChar *key, wxString vdefault, wxString vmin, wxString vmax, wxString vscl) override | 
| void | DefineEnum (int var, const wxChar *key, int vdefault, const EnumValueSymbol strings[], size_t nStrings) override | 
|  Public Member Functions inherited from SettingsVisitorBase< Const > | |
| SettingsVisitorBase () | |
| virtual | ~SettingsVisitorBase () | 
| bool | ShouldSet () | 
| virtual SettingsVisitorBase & | Optional (Ref< bool > var) | 
| virtual SettingsVisitorBase & | OptionalY (Ref< bool > var) | 
| virtual SettingsVisitorBase & | OptionalN (Ref< bool > var) | 
| virtual void | Define (Arg< bool > var, const wxChar *key, bool vdefault, bool vmin=false, bool vmax=false, bool vscl=false) | 
| virtual void | Define (Arg< size_t > var, const wxChar *key, int vdefault, int vmin=0, int vmax=100000, int vscl=1) | 
| virtual void | Define (Arg< int > var, const wxChar *key, int vdefault, int vmin=0, int vmax=100000, int vscl=1) | 
| virtual void | Define (Arg< float > var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl=1.0f) | 
| virtual void | Define (Arg< double > var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl=1.0f) | 
| virtual void | Define (Arg< double > var, const wxChar *key, double vdefault, double vmin, double vmax, double vscl=1.0f) | 
| virtual void | Define (Ref< wxString > var, const wxChar *key, wxString vdefault, wxString vmin={}, wxString vmax={}, wxString vscl={}) | 
| virtual void | DefineEnum (Arg< int > var, const wxChar *key, int vdefault, const EnumValueSymbol strings[], size_t nStrings) | 
| Public Attributes | |
| wxString | Result | 
|  Public Attributes inherited from SettingsVisitorBase< Const > | |
| wxString | mParams | 
| std::conditional_t< Const, const bool, bool > * | pOptionalFlag {} | 
| CommandParameters * | mpEap {} | 
| Additional Inherited Members | |
|  Public Types inherited from SettingsVisitorBase< Const > | |
| template<typename T > | |
| using | Ref = std::conditional_t< Const, const T &, T & > | 
| template<typename T > | |
| using | Arg = std::conditional_t< Const, T, T & > | 
SettingsVisitor that retrieves a JSON format definition of a command's parameters.
Definition at line 20 of file ShuttleGetDefinition.h.
| ShuttleGetDefinition::ShuttleGetDefinition | ( | CommandMessageTarget & | target | ) | 
Definition at line 26 of file ShuttleGetDefinition.cpp.
| 
 | override | 
Definition at line 31 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 111 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 97 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 84 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 71 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 44 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 57 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndStruct(), IsOptional(), key, and CommandMessageTargetDecorator::StartStruct().
| 
 | override | 
Definition at line 125 of file ShuttleGetDefinition.cpp.
References CommandMessageTargetDecorator::AddItem(), CommandMessageTargetDecorator::EndArray(), CommandMessageTargetDecorator::EndField(), CommandMessageTargetDecorator::EndStruct(), Internal, IsOptional(), key, CommandMessageTargetDecorator::StartArray(), CommandMessageTargetDecorator::StartField(), and CommandMessageTargetDecorator::StartStruct().
| bool ShuttleGetDefinition::IsOptional | ( | ) | 
Definition at line 14 of file ShuttleGetDefinition.cpp.
References SettingsVisitorBase< Const >::pOptionalFlag.
Referenced by Define(), and DefineEnum().
| 
 | override | 
Definition at line 21 of file ShuttleGetDefinition.cpp.
References SettingsVisitorBase< Const >::pOptionalFlag.
| wxString ShuttleGetDefinition::Result | 
Definition at line 25 of file ShuttleGetDefinition.h.