00001 #ifndef GPROGRESS_BAR_H 00002 #define GPROGRESS_BAR_H 00003 00004 #include <string> 00005 #include <time.h> 00006 #include "gmathcore/GObject.h" 00007 00008 namespace GMathLib{ 00009 namespace Util{ 00010 00014 class GProgress_Bar : public GObject 00015 { 00016 public: 00020 GProgress_Bar(); 00021 00025 ~GProgress_Bar(); 00026 00034 void Prepair(int end_time_step, const std::string content); 00035 00040 void Update_Counter(); 00041 00042 private: 00043 int now_state; 00044 int now_timestep; 00045 int end_timestep; 00046 time_t start_time; 00047 }; 00048 00049 } 00050 } 00051 #endif