Joedb
9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
ui
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
7
namespace
joedb
8
{
9
/// @ingroup ui
10
class
Progress_Bar
11
{
12
private
:
13
static
constexpr
int
length = 79;
14
static
constexpr
int64_t threshold = 16384;
15
16
const
int64_t total;
17
std::ostream *out;
18
19
int
current_display;
20
21
public
:
22
Progress_Bar
(int64_t total, std::ostream *out);
23
void
print
(int64_t current);
24
void
print_remaining
(int64_t remaining) {
print
(total - remaining);}
25
~Progress_Bar
();
26
};
27
}
28
29
#endif
joedb::Progress_Bar
Definition
Progress_Bar.h:11
joedb::Progress_Bar::print
void print(int64_t current)
Definition
Progress_Bar.cpp:30
joedb::Progress_Bar::print_remaining
void print_remaining(int64_t remaining)
Definition
Progress_Bar.h:24
joedb::Progress_Bar::~Progress_Bar
~Progress_Bar()
Definition
Progress_Bar.cpp:48
joedb
Definition
Blob.h:7
Generated by
1.9.8