Audacity  2.2.2
Public Member Functions | Protected Attributes | List of all members
DecoratedCommand Class Reference

DecoratedCommand is a decorator for command. It forwards functions to the mCommand it holds. More...

#include <Command.h>

Inheritance diagram for DecoratedCommand:
OldStyleCommand ApplyAndSendResponse

Public Member Functions

 DecoratedCommand (const OldStyleCommandPointer &cmd)
 
virtual ~DecoratedCommand ()
 
IdentInterfaceSymbol GetSymbol () override
 
CommandSignatureGetSignature () override
 
bool SetParameter (const wxString &paramName, const wxVariant &paramValue) override
 
- Public Member Functions inherited from OldStyleCommand
 OldStyleCommand ()
 
virtual ~OldStyleCommand ()
 
virtual bool Apply ()=0
 
virtual bool Apply (const CommandContext &context)=0
 

Protected Attributes

OldStyleCommandPointer mCommand
 

Detailed Description

DecoratedCommand is a decorator for command. It forwards functions to the mCommand it holds.

Command which wraps another command It ISA command and HAS a command.

Definition at line 49 of file Command.h.

Constructor & Destructor Documentation

DecoratedCommand::DecoratedCommand ( const OldStyleCommandPointer cmd)
inline

Definition at line 54 of file Command.h.

55  : mCommand(cmd)
56  {
57  wxASSERT(cmd != NULL);
58  }
OldStyleCommandPointer mCommand
Definition: Command.h:52
DecoratedCommand::~DecoratedCommand ( )
virtual

Definition at line 105 of file Command.cpp.

106 {
107 }

Member Function Documentation

CommandSignature & DecoratedCommand::GetSignature ( )
overridevirtual

Implements OldStyleCommand.

Definition at line 114 of file Command.cpp.

References mCommand.

115 {
116  return mCommand->GetSignature();
117 }
OldStyleCommandPointer mCommand
Definition: Command.h:52
IdentInterfaceSymbol DecoratedCommand::GetSymbol ( )
overridevirtual

Implements OldStyleCommand.

Definition at line 109 of file Command.cpp.

References mCommand.

Referenced by ApplyAndSendResponse::Apply().

110 {
111  return mCommand->GetSymbol();
112 }
OldStyleCommandPointer mCommand
Definition: Command.h:52
bool DecoratedCommand::SetParameter ( const wxString &  paramName,
const wxVariant &  paramValue 
)
overridevirtual

Reimplemented from OldStyleCommand.

Definition at line 119 of file Command.cpp.

References mCommand.

121 {
122  return mCommand->SetParameter(paramName, paramValue);
123 }
OldStyleCommandPointer mCommand
Definition: Command.h:52

Member Data Documentation

OldStyleCommandPointer DecoratedCommand::mCommand
protected

Definition at line 52 of file Command.h.

Referenced by ApplyAndSendResponse::Apply(), GetSignature(), GetSymbol(), and SetParameter().


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