Audacity 3.2.0
Static Public Member Functions | List of all members
TargetFactory Class Reference

TargetFactory makes Command output targets. By default, we ignore progress updates but display all other messages directly. More...

#include <CommandTargets.h>

Inheritance diagram for TargetFactory:
[legend]

Static Public Member Functions

static std::unique_ptr< CommandProgressTargetProgressDefault ()
 
static std::shared_ptr< CommandMessageTargetMessageDefault ()
 

Detailed Description

TargetFactory makes Command output targets. By default, we ignore progress updates but display all other messages directly.

Definition at line 255 of file CommandTargets.h.

Member Function Documentation

◆ MessageDefault()

static std::shared_ptr< CommandMessageTarget > TargetFactory::MessageDefault ( )
inlinestatic

Definition at line 263 of file CommandTargets.h.

264 {
265 return std::make_shared<MessageBoxTarget>();
266 }

◆ ProgressDefault()

static std::unique_ptr< CommandProgressTarget > TargetFactory::ProgressDefault ( )
inlinestatic

Definition at line 258 of file CommandTargets.h.

259 {
260 return std::make_unique<NullProgressTarget>();
261 }

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