Audacity  2.2.0
CommandOutputTarget Class Reference

#include <CommandTargets.h>

Public Member Functions

 CommandOutputTarget (std::unique_ptr< CommandProgressTarget > &&pt=TargetFactory::ProgressDefault(), std::shared_ptr< CommandMessageTarget > &&st=TargetFactory::MessageDefault(), std::shared_ptr< CommandMessageTarget > &&et=TargetFactory::MessageDefault())
 
 ~CommandOutputTarget ()
 
void Progress (double completed)
 
void Status (const wxString &status)
 
void Error (const wxString &message)
 

Private Attributes

std::unique_ptr
< CommandProgressTarget
mProgressTarget
 
std::shared_ptr
< CommandMessageTarget
mStatusTarget
 
std::shared_ptr
< CommandMessageTarget
mErrorTarget
 

Detailed Description

Used to aggregate the various output targets a command may have. Assumes responsibility for pointers passed into it.

Constructor & Destructor Documentation

CommandOutputTarget::CommandOutputTarget ( std::unique_ptr< CommandProgressTarget > &&  pt = TargetFactory::ProgressDefault(),
std::shared_ptr< CommandMessageTarget > &&  st = TargetFactory::MessageDefault(),
std::shared_ptr< CommandMessageTarget > &&  et = TargetFactory::MessageDefault() 
)
inline
CommandOutputTarget::~CommandOutputTarget ( )
inline

Member Function Documentation

void CommandOutputTarget::Error ( const wxString &  message)
inline

References mErrorTarget.

void CommandOutputTarget::Progress ( double  completed)
inline

References mProgressTarget.

void CommandOutputTarget::Status ( const wxString &  status)
inline

References mStatusTarget.

Member Data Documentation

std::shared_ptr<CommandMessageTarget> CommandOutputTarget::mErrorTarget
private

Referenced by Error().

std::unique_ptr<CommandProgressTarget> CommandOutputTarget::mProgressTarget
private

Referenced by Progress().

std::shared_ptr<CommandMessageTarget> CommandOutputTarget::mStatusTarget
private

Referenced by Status().


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