Audacity  2.2.2
Public Member Functions | List of all members
ImportCommandType Class Referencefinal

#include <ImportExportCommands.h>

Inheritance diagram for ImportCommandType:
CommandType

Public Member Functions

wxString BuildName () override
 
void BuildSignature (CommandSignature &signature) override
 Postcondition: signature is a 'signature' map containing parameter. More...
 
CommandHolder Create (std::unique_ptr< CommandOutputTarget > &&target) override
 
- Public Member Functions inherited from CommandType
 CommandType ()
 
virtual ~CommandType ()
 
const wxString & GetName ()
 
CommandSignatureGetSignature ()
 
wxString Describe ()
 

Detailed Description

Definition at line 25 of file ImportExportCommands.h.

Member Function Documentation

wxString ImportCommandType::BuildName ( )
overridevirtual

Implements CommandType.

Definition at line 24 of file ImportExportCommands.cpp.

25 {
26  return wxT("Import");
27 }
void ImportCommandType::BuildSignature ( CommandSignature signature)
overridevirtual

Postcondition: signature is a 'signature' map containing parameter.

Implements CommandType.

Definition at line 29 of file ImportExportCommands.cpp.

References CommandSignature::AddParameter().

30 {
31  auto filenameValidator = make_movable<DefaultValidator>();
32  signature.AddParameter(wxT("Filename"), wxT(""), std::move(filenameValidator));
33 }
void AddParameter(const wxString &name, const wxVariant &dft, movable_ptr< Validator > &&valid)
CommandHolder ImportCommandType::Create ( std::unique_ptr< CommandOutputTarget > &&  target)
overridevirtual

Implements CommandType.

Definition at line 35 of file ImportExportCommands.cpp.

36 {
37  return std::make_shared<ImportCommand>(*this, std::move(target));
38 }

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