Skip to main content

ClikaRT::progress::ProgressGroup

class

Header: ClikaRT/progress/progress.h

Owns and renders several bars as one block: it controls the whole region and its cursor, so parallel bars never interleave or jump. print_above emits a line above the live bars without corrupting them (raw on a terminal; routed through the logger when output isn't a terminal). Writes to stdout.

Member functions

ProgressGroup()

ProgressGroup()

an empty group; add bars with add_bar()

Declared in ClikaRT/progress/progress.h, line 185

~ProgressGroup()

~ProgressGroup()

destructor

Declared in ClikaRT/progress/progress.h, line 186

ProgressGroup(ProgressGroup)

ProgressGroup(ProgressGroup&& other) noexcept

move-construct

Declared in ClikaRT/progress/progress.h, line 187

operator=(ProgressGroup)

ProgressGroup& operator=(ProgressGroup&& other) noexcept

move-assign

Declared in ClikaRT/progress/progress.h, line 188

ProgressGroup(ProgressGroup)

ProgressGroup(const ProgressGroup&) =delete

Declared in ClikaRT/progress/progress.h, line 189

operator=(ProgressGroup)

ProgressGroup& operator=(const ProgressGroup&) =delete

Declared in ClikaRT/progress/progress.h, line 190

add_bar()

Bar add_bar()

Add a managed bar; configure the returned handle, then drive it. May be called at any time, before the first refresh or while earlier bars are already rendering (a bar-per-work-item loop adds each bar as its item starts).

Declared in ClikaRT/progress/progress.h, line 196

void print_above(std::string_view text)

Emit text above the live bars (clean; it never corrupts them).

Declared in ClikaRT/progress/progress.h, line 199

refresh()

void refresh()

Repaint all bars now.

Declared in ClikaRT/progress/progress.h, line 202

start_auto_refresh()

void start_auto_refresh()

Repaint on a background thread until stop_auto_refresh()/done().

Declared in ClikaRT/progress/progress.h, line 204

stop_auto_refresh()

void stop_auto_refresh()

stop the background repaint thread

Declared in ClikaRT/progress/progress.h, line 205

done()

void done()

Finalize: stop the driver and leave the final bars (or erase if transient).

Declared in ClikaRT/progress/progress.h, line 207

all_completed()

bool all_completed() const

whether every added bar completed

Declared in ClikaRT/progress/progress.h, line 209