ProgressBar.h

Go to the documentation of this file.
00001 #include <iostream>
00002 
00003 
00004 #ifndef PROGRESS_BAR
00005 #define PROGRESS_BAR
00006 
00007 struct PBar
00008 {
00009   PBar(int i)   : progress(i){}
00010   PBar(double i): progress(i*100.0){}
00011   
00012   friend ostream& operator << (ostream& out, const PBar& pb ){
00013     out << pb.progress << flush;
00014     return out;
00015   }
00016   
00017   double progress;
00018 };
00019 
00020 #endif
00021 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:45 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1