7 #ifndef NUKLEI_PROGRESSINDICATOR_H
8 #define NUKLEI_PROGRESSINDICATOR_H
19 static const int spanStartDef, spanEndDef;
20 static const std::string messageDef;
21 static const std::string backspaceSequence;
26 const std::string &message = messageDef,
27 const unsigned minLogLevel = 0);
30 const std::string &message = messageDef,
31 const unsigned minLogLevel = 0);
34 void initialize(
const int spanStart,
36 const std::string &message,
37 const unsigned minLogLevel);
39 void setMinLogLevel(
const unsigned l);
40 unsigned getMinLogLevel()
const;
43 void setBackspace(
const bool backspace);
44 void inc(
const int value = 1);
45 void mtInc(
const int value = 1);
46 const std::string& getMessage()
const;
47 void setMessage(
const std::string& message);
50 static int main(
int argc,
char ** argv);
52 bool verbose_, backspace_;
53 unsigned minLogLevel_;
54 enum { ready, running, finished } state_;
55 int spanStart_, spanEnd_, spanLength_, spanPos_, current_, scale_;
56 std::string message_, colorStart_, colorEnd_;