Go to the documentation of this file.00001 #ifndef mbl_progress_time_h_
00002 #define mbl_progress_time_h_
00003 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00004 #pragma interface
00005 #endif
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include <vcl_iostream.h>
00016 #include <vul/vul_timer.h>
00017 #include <vul/vul_ios_state.h>
00018 #include <mbl/mbl_progress.h>
00019
00020
00021
00022
00023 class mbl_progress_time : public mbl_progress
00024 {
00025 public:
00026
00027
00028
00029 mbl_progress_time(vcl_ostream& os=vcl_cout);
00030
00031
00032 ~mbl_progress_time();
00033
00034
00035 virtual vcl_string is_a() const;
00036
00037
00038 protected:
00039
00040
00041
00042 virtual void on_set_estimated_iterations(const vcl_string& identifier,
00043 const int total_iterations);
00044
00045
00046
00047
00048 virtual void on_set_progress(const vcl_string& identifier,
00049 const int progress);
00050
00051
00052
00053 virtual void on_end_progress(const vcl_string &identifier);
00054
00055
00056 protected:
00057
00058 vcl_ostream& os_;
00059 vul_timer timer_;
00060 vul_ios_state_saver ios_state_;
00061 };
00062
00063
00064
00065 #endif // mbl_progress_time_h_