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
 CommandMessageTarget ()
 
virtual ~CommandMessageTarget ()
 
virtual void StartArray ()
 
virtual void EndArray ()
 
virtual void StartStruct ()
 
virtual void EndStruct ()
 
virtual void AddItem (const wxString &value, const wxString &name="")
 
virtual void AddBool (const bool value, const wxString &name="")
 
virtual void AddItem (const double value, const wxString &name="")
 
virtual void StartField (const wxString &name="")
 
virtual void EndField ()
 
virtual void Flush ()
 
wxString Escaped (const wxString &str)
 

Private Attributes

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

Additional Inherited Members

- Public Attributes inherited from CommandMessageTarget
wxArrayInt mCounts
 

Detailed Description

Sends messages to two message targets at once.

Definition at line 255 of file CommandTargets.h.

Constructor & Destructor Documentation

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

Definition at line 260 of file CommandTargets.h.

References m1, and m2.

262  : m1(std::move(t1)), m2(std::move(t2))
263  {
264  wxASSERT(m1);
265  wxASSERT(m2);
266  }
std::unique_ptr< CommandMessageTarget > m2
std::unique_ptr< CommandMessageTarget > m1
CombinedMessageTarget::~CombinedMessageTarget ( )
inline

Definition at line 267 of file CommandTargets.h.

268  {
269  }

Member Function Documentation

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

Implements CommandMessageTarget.

Definition at line 270 of file CommandTargets.h.

References m1, and m2.

271  {
272  m1->Update(message);
273  m2->Update(message);
274  }
std::unique_ptr< CommandMessageTarget > m2
std::unique_ptr< CommandMessageTarget > m1

Member Data Documentation

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

Definition at line 258 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().

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

Definition at line 258 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().


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