Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ProgressBar Class Reference
Inheritance diagram for nix::ProgressBar:
nix::Logger

Public Member Functions

 ProgressBar (bool isTTY)
 
void stop () override final
 
void pause () override
 
void resume () override
 
bool isVerbose () override
 
void log (Verbosity lvl, std::string_view s) override
 
void logEI (const ErrorInfo &ei) override
 
void log (State &state, Verbosity lvl, std::string_view s)
 
void startActivity (ActivityId act, Verbosity lvl, ActivityType type, const std::string &s, const Fields &fields, ActivityId parent) override
 
bool hasAncestor (State &state, ActivityType type, ActivityId act)
 
void stopActivity (ActivityId act) override
 
void result (ActivityId act, ResultType type, const std::vector< Field > &fields) override
 
void update (State &state)
 
void redraw (std::string newOutput)
 
std::chrono::milliseconds draw (State &state)
 
std::string getStatus (State &state)
 
void writeToStdout (std::string_view s) override
 
std::optional< charask (std::string_view msg) override
 
void setPrintBuildLogs (bool printBuildLogs) override
 
- Public Member Functions inherited from nix::Logger
void log (std::string_view s)
 
void logEI (Verbosity lvl, ErrorInfo ei)
 
virtual void warn (const std::string &msg)
 
virtual void result (ActivityId act, ResultType type, const Fields &fields)
 
template<typename... Args>
void cout (const Args &... args)
 

Additional Inherited Members

- Public Types inherited from nix::Logger
typedef std::vector< FieldFields
 

Member Function Documentation

◆ ask()

std::optional< char > nix::ProgressBar::ask ( std::string_view msg)
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ isVerbose()

bool nix::ProgressBar::isVerbose ( )
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ log()

void nix::ProgressBar::log ( Verbosity lvl,
std::string_view s )
inlineoverridevirtual

Implements nix::Logger.

◆ logEI()

void nix::ProgressBar::logEI ( const ErrorInfo & ei)
inlineoverridevirtual

Implements nix::Logger.

◆ pause()

void nix::ProgressBar::pause ( )
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ redraw()

void nix::ProgressBar::redraw ( std::string newOutput)
inline

Redraw, if the output has changed.

Excessive redrawing is noticable on slow terminals, and it interferes with text selection in some terminals, including libvte-based terminal emulators.

◆ resume()

void nix::ProgressBar::resume ( )
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ setPrintBuildLogs()

void nix::ProgressBar::setPrintBuildLogs ( bool printBuildLogs)
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ startActivity()

void nix::ProgressBar::startActivity ( ActivityId act,
Verbosity lvl,
ActivityType type,
const std::string & s,
const Fields & fields,
ActivityId parent )
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ stop()

void nix::ProgressBar::stop ( )
inlinefinaloverridevirtual

Reimplemented from nix::Logger.

◆ stopActivity()

void nix::ProgressBar::stopActivity ( ActivityId act)
inlineoverridevirtual

Reimplemented from nix::Logger.

◆ writeToStdout()

void nix::ProgressBar::writeToStdout ( std::string_view s)
inlineoverridevirtual

Reimplemented from nix::Logger.


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