| 1828 | class ProgressScaleWriter { |
| 1829 | public: |
| 1830 | ProgressScaleWriter(std::ostream &os, size_t bar_width, const std::string &fill, |
| 1831 | const std::string &lead, const std::string &remainder) |
| 1832 | : os(os), bar_width(bar_width), fill(fill), lead(lead), remainder(remainder) {} |
| 1833 | |
| 1834 | std::ostream &write(float progress) { |
| 1835 | auto pos = static_cast<size_t>(progress * bar_width / 100.0); |
nothing calls this directly
no outgoing calls
no test coverage detected