MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / ProgressScaleWriter

Method ProgressScaleWriter

src/indicators.hpp:1830–1832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828class ProgressScaleWriter {
1829public:
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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected