BioCMAMC-ST
progress_bar.hpp
1#ifndef __IO_PROGRESS_BAR_HPP__
2#define __IO_PROGRESS_BAR_HPP__
3#include <ostream>
4
5namespace IO
6{
8 {
9 public:
11 void show(std::ostream& out_stream,
12 std::size_t total,
13 std::size_t current_position);
14
15 void show_percentage(std::ostream& out_stream,
16 std::size_t total,
17 std::size_t current_position) const;
18
19 private:
20 std::string buffer;
21
22 const int default_precision; // NOLINT
23 };
24} // namespace IO
25
26#endif
const int default_precision
Definition progress_bar.hpp:22
ProgressBar()
Definition progress_bar.cpp:10
void show_percentage(std::ostream &out_stream, std::size_t total, std::size_t current_position) const
Definition progress_bar.cpp:33
void show(std::ostream &out_stream, std::size_t total, std::size_t current_position)
Definition progress_bar.cpp:17
std::string buffer
Definition progress_bar.hpp:20
Definition impl_post_process.hpp:11