bkcrack: ConsoleProgress Class Reference

bkcrack 1.8.1 Crack legacy zip encryption with Biham and Kocher's known plaintext attack.

ConsoleProgress Class Reference

Progress indicator which prints itself at regular time intervals. More...

`#include <src/cli/ConsoleProgress.hpp>`

Inheritance diagram for ConsoleProgress:
[legend]
Collaboration diagram for ConsoleProgress:
[legend]

## Public Member Functions
| ConsoleProgress (std::ostream &os, const std::chrono::milliseconds &interval=std::chrono::milliseconds{200})
| Start a thread to print progress.
| ~ConsoleProgress ()
| Notify and stop the printing thread.
Public Member Functions inherited from Progress
| Progress (std::ostream &os)
| Constructor.
template<std::invocable< std::ostream & > F>
void | log (F f)

## Additional Inherited Members
Public Types inherited from Progress
enum class | State { Normal , Canceled , EarlyExit }
| Possible states of a long operation. More...
Public Attributes inherited from Progress
std::atomic< State > | state = State::Normal
| State of the long operation.
std::atomic< int > | done = 0
| Number of steps already done.
std::atomic< int > | total = 0
| Total number of steps.

## Detailed Description

Progress indicator which prints itself at regular time intervals.

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

- src/cli/ConsoleProgress.hpp