1 /*! ========================================================================
2 ** Extended Template Library
3 ** Status Callback Class Implementation
4 ** $Id: _status.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
8 ** This package is free software; you can redistribute it and/or
9 ** modify it under the terms of the GNU General Public License as
10 ** published by the Free Software Foundation; either version 2 of
11 ** the License, or (at your option) any later version.
13 ** This package is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ** General Public License for more details.
18 ** === N O T E S ===========================================================
20 ** This is an internal header file, included by other ETL headers.
21 ** You should not attempt to use it directly.
23 ** ========================================================================= */
25 /* === S T A R T =========================================================== */
27 #ifndef __ETL_STATUS_H
28 #define __ETL_STATUS_H
30 /* === H E A D E R S ======================================================= */
32 /* === M A C R O S ========================================================= */
34 /* === T Y P E D E F S ===================================================== */
36 /* === C L A S S E S & S T R U C T S ======================================= */
43 virtual ~ProgressCallback() { }
45 virtual bool task(const std::string &task) { return true; }
47 virtual void push_task(const std::string &task,int start=0, int end=100, int total=100)
49 virtual void pop_task() { return; }
51 virtual void warning(const std::string &warn) { return; }
52 virtual void error(const std::string &err) { return; }
54 virtual bool amount_complete(int current, int total) { return true; }
55 virtual bool amount_complete(float percent)
56 { return amount_complete((int)(percent*10000),10000); }
61 /* === E X T E R N S ======================================================= */
63 /* === E N D =============================================================== */