34 #ifndef NEKTAR_LIBUTILITIES_PROGRESSBAR_HPP 
   35 #define NEKTAR_LIBUTILITIES_PROGRESSBAR_HPP 
   45 #define ISTTY _isatty(_fileno(stdout)) 
   48 #define ISTTY isatty(fileno(stdout)) 
   53 namespace LibUtilities
 
   71     std::cout.unsetf ( std::ios::floatfield );
 
   77         cout << message << 
": ";
 
   78         float progress = position / float(goal);
 
   79         cout << setw(3) << ceil(100 * progress) << 
"% [";
 
   80         for (
int j = 0; j < ceil(progress * 49); j++)
 
   84         for (
int j = ceil(progress * 49); j < 49; j++)
 
   93         if (
int(ceil(
double(100 * position / goal))) % 2 ==  0)
 
  103 #endif // NEKTAR_LIBUTILITIES_PROGRESSBAR_HPP 
void PrintProgressbar(const int position, const int goal, const string message)
Prints a progressbar.