Audacity  2.2.2
Public Member Functions | Private Attributes | List of all members
CombinedMessageTarget Class Referencefinal

Sends messages to two message targets at once. More...

#include <CommandTargets.h>

Inheritance diagram for CombinedMessageTarget:
CommandMessageTarget

Public Member Functions

 CombinedMessageTarget (std::unique_ptr< CommandMessageTarget > &&t1, std::unique_ptr< CommandMessageTarget > &&t2)
 
 ~CombinedMessageTarget ()
 
void Update (const wxString &message) override
 
- Public Member Functions inherited from CommandMessageTarget
virtual ~CommandMessageTarget ()
 

Private Attributes

std::unique_ptr
< CommandMessageTarget
m1
 
std::unique_ptr
< CommandMessageTarget
m2
 

Detailed Description

Sends messages to two message targets at once.

Definition at line 145 of file CommandTargets.h.

Constructor & Destructor Documentation

CombinedMessageTarget::CombinedMessageTarget ( std::unique_ptr< CommandMessageTarget > &&  t1,
std::unique_ptr< CommandMessageTarget > &&  t2 
)
inline

Definition at line 150 of file CommandTargets.h.

References m1, and m2.

152  : m1(std::move(t1)), m2(std::move(t2))
153  {
154  wxASSERT(m1);
155  wxASSERT(m2);
156  }
std::unique_ptr< CommandMessageTarget > m2
std::unique_ptr< CommandMessageTarget > m1
CombinedMessageTarget::~CombinedMessageTarget ( )
inline

Definition at line 157 of file CommandTargets.h.

158  {
159  }

Member Function Documentation

void CombinedMessageTarget::Update ( const wxString &  message)
inlineoverridevirtual

Implements CommandMessageTarget.

Definition at line 160 of file CommandTargets.h.

References m1, and m2.

161  {
162  m1->Update(message);
163  m2->Update(message);
164  }
std::unique_ptr< CommandMessageTarget > m2
std::unique_ptr< CommandMessageTarget > m1

Member Data Documentation

std::unique_ptr<CommandMessageTarget> CombinedMessageTarget::m1
private

Definition at line 148 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().

std::unique_ptr<CommandMessageTarget> CombinedMessageTarget::m2
private

Definition at line 148 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().


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