Audacity  2.2.0
BatchEvalCommand.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4  Audacity(R) is copyright (c) 1999-2009 Audacity Team.
5  File License: wxwidgets
6 
7  BatchEvalCommand.h
8  Dan Horgan
9 
10 ******************************************************************//*******************************************************************/
21 
22 #ifndef __BATCHEVALCOMMAND__
23 #define __BATCHEVALCOMMAND__
24 
25 #include "Command.h"
26 #include "CommandType.h"
27 #include "../BatchCommands.h"
28 
29 class BatchEvalCommandType final : public CommandType
30 {
31 public:
32  wxString BuildName() override;
33  void BuildSignature(CommandSignature &signature) override;
34  CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
35 };
36 
38 {
39 public:
41  std::unique_ptr<CommandOutputTarget> &&target)
42  : CommandImplementation(type, std::move(target))
43  { }
44 
45  virtual ~BatchEvalCommand();
46  bool Apply(CommandExecutionContext context) override;
47 };
48 
49 #endif /* End of include guard: __BATCHEVALCOMMAND__ */
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
Definition: BatchEvalCommand.cpp:23
std::shared_ptr< Command > CommandHolder
Definition: AppCommandEvent.h:26
Contains declarations for CommandType class.
Contains declaration of Command base class.
BatchEvalCommand(CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
Definition: BatchEvalCommand.h:40
wxString BuildName() override
Definition: BatchEvalCommand.cpp:18
CommandHolder Create(std::unique_ptr< CommandOutputTarget > &&target) override
Definition: BatchEvalCommand.cpp:33
bool Apply(CommandExecutionContext context) override
Definition: BatchEvalCommand.cpp:38
virtual ~BatchEvalCommand()
Definition: BatchEvalCommand.cpp:58
is derived from Command. It validates and applies the command. CommandImplementation::Apply() is over...
Definition: Command.h:118
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:29
Definition: BatchEvalCommand.h:29
Given a string representing a command, pass it to the BatchCommands system.
Definition: BatchEvalCommand.h:37
Represents a context to which a command may be applied.
Definition: Command.h:50
Class that maps parameter names to default values and validators.
Definition: CommandSignature.h:28