Audacity 3.2.0
|
CommandOutputTargets a mix of three output classes to output progress indication, status messages and errors. More...
#include <CommandTargets.h>
Public Member Functions | |
CommandOutputTargets (std::unique_ptr< CommandProgressTarget > pt=TargetFactory::ProgressDefault(), std::shared_ptr< CommandMessageTarget > st=TargetFactory::MessageDefault(), std::shared_ptr< CommandMessageTarget > et=TargetFactory::MessageDefault()) | |
~CommandOutputTargets () | |
void | Progress (double completed) |
void | Status (const wxString &status, bool bFlush=false) |
void | Error (const wxString &message) |
void | StartArray () |
void | EndArray () |
void | StartStruct () |
void | EndStruct () |
void | StartField (const wxString &name) |
void | EndField () |
void | AddItem (const wxString &value, const wxString &name={}) |
void | AddBool (const bool value, const wxString &name={}) |
void | AddItem (const double value, const wxString &name={}) |
Public Attributes | |
std::unique_ptr< CommandProgressTarget > | mProgressTarget |
std::shared_ptr< CommandMessageTarget > | mStatusTarget |
std::shared_ptr< CommandMessageTarget > | mErrorTarget |
CommandOutputTargets a mix of three output classes to output progress indication, status messages and errors.
Used to aggregate the various output targets a command may have. Assumes responsibility for pointers passed into it. mProgressTarget is a unique pointer, but mStatusTraget and mErrorTarget are shared ones, because they may both point to the same output
Definition at line 274 of file CommandTargets.h.
|
inline |
Definition at line 281 of file CommandTargets.h.
|
inline |
Definition at line 290 of file CommandTargets.h.
|
inline |
Definition at line 347 of file CommandTargets.h.
|
inline |
Definition at line 352 of file CommandTargets.h.
|
inline |
Definition at line 342 of file CommandTargets.h.
|
inline |
Definition at line 317 of file CommandTargets.h.
References mStatusTarget.
|
inline |
Definition at line 337 of file CommandTargets.h.
References mStatusTarget.
|
inline |
Definition at line 327 of file CommandTargets.h.
References mStatusTarget.
|
inline |
Definition at line 307 of file CommandTargets.h.
References mErrorTarget.
|
inline |
Definition at line 294 of file CommandTargets.h.
References mProgressTarget.
|
inline |
Definition at line 312 of file CommandTargets.h.
References mStatusTarget.
|
inline |
Definition at line 332 of file CommandTargets.h.
References mStatusTarget, and name.
|
inline |
Definition at line 322 of file CommandTargets.h.
References mStatusTarget.
|
inline |
Definition at line 299 of file CommandTargets.h.
References mStatusTarget.
std::shared_ptr<CommandMessageTarget> CommandOutputTargets::mErrorTarget |
Definition at line 279 of file CommandTargets.h.
Referenced by BriefCommandOutputTargets::BriefCommandOutputTargets(), Error(), LispifiedCommandOutputTargets::LispifiedCommandOutputTargets(), BriefCommandOutputTargets::~BriefCommandOutputTargets(), and LispifiedCommandOutputTargets::~LispifiedCommandOutputTargets().
std::unique_ptr<CommandProgressTarget> CommandOutputTargets::mProgressTarget |
Definition at line 277 of file CommandTargets.h.
Referenced by BriefCommandOutputTargets::BriefCommandOutputTargets(), LispifiedCommandOutputTargets::LispifiedCommandOutputTargets(), Progress(), BriefCommandOutputTargets::~BriefCommandOutputTargets(), and LispifiedCommandOutputTargets::~LispifiedCommandOutputTargets().
std::shared_ptr<CommandMessageTarget> CommandOutputTargets::mStatusTarget |
Definition at line 278 of file CommandTargets.h.
Referenced by BriefCommandOutputTargets::BriefCommandOutputTargets(), EndArray(), EndField(), EndStruct(), LispifiedCommandOutputTargets::LispifiedCommandOutputTargets(), StartArray(), StartField(), StartStruct(), and Status().