Audacity  3.0.3
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:
[legend]
Collaboration diagram for CombinedMessageTarget:
[legend]

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< CommandMessageTargetm1
 
std::unique_ptr< CommandMessageTargetm2
 

Additional Inherited Members

- Public Attributes inherited from CommandMessageTarget
std::vector< int > mCounts
 

Detailed Description

Sends messages to two message targets at once.

Definition at line 258 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ CombinedMessageTarget()

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

Definition at line 263 of file CommandTargets.h.

265  : m1(std::move(t1)), m2(std::move(t2))
266  {
267  wxASSERT(m1);
268  wxASSERT(m2);
269  }

References m1, and m2.

◆ ~CombinedMessageTarget()

CombinedMessageTarget::~CombinedMessageTarget ( )
inline

Definition at line 270 of file CommandTargets.h.

271  {
272  }

Member Function Documentation

◆ Update()

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

Implements CommandMessageTarget.

Definition at line 273 of file CommandTargets.h.

274  {
275  m1->Update(message);
276  m2->Update(message);
277  }

References m1, and m2.

Member Data Documentation

◆ m1

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

Definition at line 261 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().

◆ m2

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

Definition at line 261 of file CommandTargets.h.

Referenced by CombinedMessageTarget(), and Update().


The documentation for this class was generated from the following file:
CombinedMessageTarget::m1
std::unique_ptr< CommandMessageTarget > m1
Definition: CommandTargets.h:261
CombinedMessageTarget::m2
std::unique_ptr< CommandMessageTarget > m2
Definition: CommandTargets.h:261