thin-provisioning-tools/base/progress_monitor.h
Joe Thornber 4313469475 [all] Switch from boost::shared_ptr -> std::shared_ptr.
Shared_ptr has moved into the standard library since these tools were
first written.
2020-04-30 15:02:43 +01:00

24 lines
534 B
C++

#ifndef BASE_PROGRESS_MONITOR_H
#define BASE_PROGRESS_MONITOR_H
#include <memory>
#include <string>
//----------------------------------------------------------------
namespace base {
class progress_monitor {
public:
virtual ~progress_monitor() {}
virtual void update_percent(unsigned) = 0;
};
std::unique_ptr<progress_monitor> create_progress_bar(std::string const &title);
std::unique_ptr<progress_monitor> create_quiet_progress_monitor();
}
//----------------------------------------------------------------
#endif