1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2026-01-03 09:59:29 +00:00

function to read file lists and progress bar class

This commit is contained in:
2014-06-04 14:43:36 +02:00
parent ba25380269
commit b17e2c0c3c
3 changed files with 65 additions and 13 deletions

View File

@@ -31,3 +31,22 @@ const string Env::msgPrefix = "[" + strFrom(PACKAGE_NAME) + " v"
void Env::function(void)
{}
ostream & Latan::operator<<(ostream &out, const ProgressBar &&bar)
{
const Index nTick = bar.nCol_*bar.current_/bar.total_;
out << "[";
for (Index i = 0; i < nTick; ++i)
{
out << "=";
}
for (Index i = nTick; i < bar.nCol_; ++i)
{
out << " ";
}
out << "] " << bar.current_ << "/" << bar.total_;
out.flush();
return out;
}