Audacity  2.2.2
Public Member Functions | List of all members
OldStyleCommand Class Referenceabstract

Abstract base class for command interface. This is the version created by Dan Horgan. It was previously a factory for other command classes. It created a separation between the type of a command and the command itself, which is being removed. These Cmmands were managed by CommandDirectory. More...

#include <Command.h>

Inheritance diagram for OldStyleCommand:
CommandImplementation DecoratedCommand BatchEvalCommand ApplyAndSendResponse

Public Member Functions

 OldStyleCommand ()
 
virtual ~OldStyleCommand ()
 
virtual IdentInterfaceSymbol GetSymbol ()=0
 
virtual CommandSignatureGetSignature ()=0
 
virtual bool SetParameter (const wxString &paramName, const wxVariant &paramValue)
 
virtual bool Apply ()=0
 
virtual bool Apply (const CommandContext &context)=0
 

Detailed Description

Abstract base class for command interface. This is the version created by Dan Horgan. It was previously a factory for other command classes. It created a separation between the type of a command and the command itself, which is being removed. These Cmmands were managed by CommandDirectory.

OldStyleCommand is the key class that allows us to carry a converted (not textual) command from a non-GUI place to the GUI thread. It contains the command AND the context that will be used for its output.

Definition at line 33 of file Command.h.

Constructor & Destructor Documentation

OldStyleCommand::OldStyleCommand ( )
inline

Definition at line 36 of file Command.h.

36 {};
virtual OldStyleCommand::~OldStyleCommand ( )
inlinevirtual

Definition at line 37 of file Command.h.

37 { }

Member Function Documentation

virtual bool OldStyleCommand::Apply ( )
pure virtual
virtual bool OldStyleCommand::Apply ( const CommandContext context)
pure virtual
virtual CommandSignature& OldStyleCommand::GetSignature ( )
pure virtual
virtual IdentInterfaceSymbol OldStyleCommand::GetSymbol ( )
pure virtual
bool OldStyleCommand::SetParameter ( const wxString &  paramName,
const wxVariant &  paramValue 
)
virtual

Reimplemented in CommandImplementation, and DecoratedCommand.

Definition at line 98 of file Command.cpp.

100 {
101  wxASSERT_MSG(false, wxT("Tried to set parameter for command which doesn't support parameters!"));
102  return false;
103 }

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