5 #ifndef _DDS_PROGRESSDISPLAY_H_ 6 #define _DDS_PROGRESSDISPLAY_H_ 14 float progress = (_total != 0) ? (
float)_completed / (float)_total : 0;
18 const unsigned int barWidth = 50;
22 unsigned int pos = progress * barWidth;
24 for (
unsigned int i = 0; i < barWidth; ++i)
31 ss <<
"] " << int(progress * 100.0) <<
" % (" << _completed <<
"/" << _total <<
")\r";
std::string getProgressDisplayString(int _completed, int _total)
Definition: ProgressDisplay.h:12
Definition: BoostHelper.h:14