_status.h

Go to the documentation of this file.
00001 #ifdef THIS_CODE_IS_NOT_USED
00002 
00027 /* === S T A R T =========================================================== */
00028 
00029 #ifndef __ETL_STATUS_H
00030 #define __ETL_STATUS_H
00031 
00032 /* === H E A D E R S ======================================================= */
00033 
00034 /* === M A C R O S ========================================================= */
00035 
00036 /* === T Y P E D E F S ===================================================== */
00037 
00038 /* === C L A S S E S & S T R U C T S ======================================= */
00039 
00040 _ETL_BEGIN_NAMESPACE
00041 
00042 class status
00043 {
00044 public:
00045     virtual ~ProgressCallback() { }
00046 
00047     virtual bool task(const std::string &task) { return true; }
00048 
00049 #warning this task(task) thing looks wrong, but the code isn't used, so let's not worry
00050     virtual void push_task(const std::string &task,int start=0, int end=100, int total=100)
00051         { task(task); }
00052     virtual void pop_task() { return; }
00053 
00054     virtual void warning(const std::string &warn) { return; }
00055     virtual void error(const std::string &err) { return; }
00056 
00057     virtual bool amount_complete(int current, int total) { return true; }
00058     virtual bool amount_complete(float percent)
00059         { return amount_complete((int)(percent*10000),10000); }
00060 };
00061 
00062 _ETL_END_NAMESPACE
00063 
00064 /* === E X T E R N S ======================================================= */
00065 
00066 /* === E N D =============================================================== */
00067 
00068 #endif
00069 #endif /* THIS_CODE_IS_NOT_USED */

Generated on Sun Oct 28 06:22:06 2007 for ETL by  doxygen 1.5.3-20071008