thin-provisioning-tools/base/progress_monitor.h
Joe Thornber 767c39cf71 [build] switch to c++11
Conflicts:
	Makefile.in
	chunker/cache_stream.cc
	chunker/cache_stream.h
	thin-provisioning/thin_archive.cc
	thin-provisioning/thin_show_duplicates.cc
	unit-tests/Makefile.in
2016-02-16 16:45:44 +00:00

25 lines
566 B
C++

#ifndef BASE_PROGRESS_MONITOR_H
#define BASE_PROGRESS_MONITOR_H
#include <boost/shared_ptr.hpp>
#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