Audacity  2.2.0
MessageCommand.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  File License: wxWidgets
6 
7  Dan Horgan
8 
9 ******************************************************************//***************************************************************//***
15 
16 \class MessageCommand
17 \brief Command to send a message (currently on the status channel)
18 
19 *//*******************************************************************/
20 
21 #ifndef __MESSAGECOMMAND__
22 #define __MESSAGECOMMAND__
23 
24 #include "Command.h"
25 #include "CommandType.h"
26 
27 class MessageCommandType final : public CommandType
28 {
29 public:
30  wxString BuildName() override;
31  void BuildSignature(CommandSignature &signature) override;
32  CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
33 };
34 
36 {
37 public:
39  std::unique_ptr<CommandOutputTarget> &&target)
40  : CommandImplementation(type, std::move(target)) {}
41  bool Apply(CommandExecutionContext context) override;
42 };
43 
44 #endif /* End of include guard: __MESSAGECOMMAND__ */
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
Definition: MessageCommand.cpp:24
std::shared_ptr< Command > CommandHolder
Definition: AppCommandEvent.h:26
Contains declarations for CommandType class.
Contains declaration of Command base class.
Definition: Command.h:108
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:29
Definition: MessageCommand.h:35
Definition: MessageCommand.h:27
Represents a context to which a command may be applied.
Definition: Command.h:40
bool Apply(CommandExecutionContext context) override
Definition: MessageCommand.cpp:35
CommandHolder Create(std::unique_ptr< CommandOutputTarget > &&target) override
Definition: MessageCommand.cpp:30
wxString BuildName() override
Definition: MessageCommand.cpp:19
MessageCommand(CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
Definition: MessageCommand.h:38
Class that maps parameter names to default values and validators.
Definition: CommandSignature.h:28