|
| 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< char > | ask (std::string_view msg) override |
|
void | setPrintBuildLogs (bool printBuildLogs) override |
|
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) |
|
|
typedef std::vector< Field > | Fields |
|
◆ ask()
std::optional< char > nix::ProgressBar::ask |
( |
std::string_view | msg | ) |
|
|
inlineoverridevirtual |
◆ isVerbose()
bool nix::ProgressBar::isVerbose |
( |
| ) |
|
|
inlineoverridevirtual |
◆ log()
void nix::ProgressBar::log |
( |
Verbosity | lvl, |
|
|
std::string_view | s ) |
|
inlineoverridevirtual |
◆ logEI()
void nix::ProgressBar::logEI |
( |
const ErrorInfo & | ei | ) |
|
|
inlineoverridevirtual |
◆ pause()
void nix::ProgressBar::pause |
( |
| ) |
|
|
inlineoverridevirtual |
◆ 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 |
◆ setPrintBuildLogs()
void nix::ProgressBar::setPrintBuildLogs |
( |
bool | printBuildLogs | ) |
|
|
inlineoverridevirtual |
◆ startActivity()
void nix::ProgressBar::startActivity |
( |
ActivityId | act, |
|
|
Verbosity | lvl, |
|
|
ActivityType | type, |
|
|
const std::string & | s, |
|
|
const Fields & | fields, |
|
|
ActivityId | parent ) |
|
inlineoverridevirtual |
◆ stop()
void nix::ProgressBar::stop |
( |
| ) |
|
|
inlinefinaloverridevirtual |
◆ stopActivity()
void nix::ProgressBar::stopActivity |
( |
ActivityId | act | ) |
|
|
inlineoverridevirtual |
◆ writeToStdout()
void nix::ProgressBar::writeToStdout |
( |
std::string_view | s | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libmain/progress-bar.cc