Definition at line 69 of file ProgressPrinter.h. References Impala::MakeString(), mConsole, mName, mProgressBarLength, mRange, and mSpinner. Referenced by Done(), PrintProgress(), and Start(). 00070 { 00071 switch(mSpinner) 00072 { 00073 case 0: mConsole << '/'; mSpinner=1; break; 00074 case 1: mConsole << '-'; mSpinner=2; break; 00075 case 2: mConsole << '\\'; mSpinner=3; break; 00076 case 3: mConsole << '|'; mSpinner=0; break; 00077 } 00078 mConsole << ' ' << mName << " ["; 00079 int length = mProgressBarLength * progress / mRange; 00080 mConsole << std::string(length, '=') << std::string(mProgressBarLength - length, ' '); 00081 std::string percentage = Impala::MakeString((int)(100 * ((double)progress / (double)mRange))); 00082 mConsole << "] " << std::string(3-percentage.size(), ' ') << percentage << '%'; 00083 mConsole.flush(); 00084 }
Here is the call graph for this function:
|