1 #ifndef _ots_Utilities_ProgressBar_h_
2 #define _ots_Utilities_ProgressBar_h_
4 #include "otsdaq/Macros/CoutMacros.h"
5 #include "otsdaq/MessageFacility/MessageFacility.h"
90 #define resetProgressBar(x) reset(__FILE__, std::to_string(__LINE__), x)
92 void reset(std::string file, std::string lineNumber,
int id = 0);
108 const std::string cProgressBarFilePath_;
109 const std::string cProgressBarFileExtension_;
110 std::string totalStepsFileName_;
112 int stepsToComplete_;
114 std::mutex theMutex_;
std::string readPercentageString()
return percentage complete as std::string
bool isComplete()
get functions
void reset(std::string file, std::string lineNumber, int id=0)
will call this reset:
int read()
if stepsToComplete==0, then define any progress as 50%, thread safe
void complete()
declare complete, thread safe