Audacity 3.2.0
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 () override
 
void Update (const wxString &message) override
 
- Public Member Functions inherited from CommandMessageTarget
 CommandMessageTarget ()
 
virtual ~CommandMessageTarget ()
 
virtual void Update (const wxString &message)=0
 
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 229 of file CommandTargets.h.

Constructor & Destructor Documentation

◆ CombinedMessageTarget()

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

Definition at line 234 of file CommandTargets.h.

236 : m1(std::move(t1)), m2(std::move(t2))
237 {
238 wxASSERT(m1);
239 wxASSERT(m2);
240 }
std::unique_ptr< CommandMessageTarget > m2
std::unique_ptr< CommandMessageTarget > m1

◆ ~CombinedMessageTarget()

CombinedMessageTarget::~CombinedMessageTarget ( )
overridedefault

Member Function Documentation

◆ Update()

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

Implements CommandMessageTarget.

Definition at line 242 of file CommandTargets.h.

243 {
244 m1->Update(message);
245 m2->Update(message);
246 }

Member Data Documentation

◆ m1

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

Definition at line 232 of file CommandTargets.h.

◆ m2

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

Definition at line 232 of file CommandTargets.h.


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