Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Progress_Bar.h
Go to the documentation of this file.
1#ifndef joedb_io_Progress_Bar_declared
2#define joedb_io_Progress_Bar_declared
3
4#include <cstdint>
5#include <iosfwd>
6
7namespace joedb
8{
9 /// @ingroup ui
11 {
12 private:
13 static constexpr int length = 79;
14
15 const int64_t total;
16 std::ostream &out;
17
18 int current_display;
19
20 public:
21 Progress_Bar(int64_t total, std::ostream &out);
22 void print(int64_t current);
23 void print_remaining(int64_t remaining) {print(total - remaining);}
25 };
26}
27
28#endif
void print(int64_t current)
void print_remaining(int64_t remaining)
Definition Blob.h:7