ETL
0.04.19
Main Page
Related Pages
Classes
Files
File List
File Members
ETL
_status.h
Go to the documentation of this file.
1
#ifdef THIS_CODE_IS_NOT_USED
2
27
/* === S T A R T =========================================================== */
28
29
#ifndef __ETL__STATUS_H
30
#define __ETL__STATUS_H
31
32
/* === H E A D E R S ======================================================= */
33
34
/* === M A C R O S ========================================================= */
35
36
/* === T Y P E D E F S ===================================================== */
37
38
/* === C L A S S E S & S T R U C T S ======================================= */
39
40
_ETL_BEGIN_NAMESPACE
41
42
class
status
43
{
44
public
:
45
virtual
~ProgressCallback() { }
46
47
virtual
bool
task(
const
std::string &task) {
return
true
; }
48
49
#warning this task(task) thing looks wrong, but the code isn't used, so let's not worry
50
virtual
void
push_task(
const
std::string &task,
int
start=0,
int
end=100,
int
total=100)
51
{ task(task); }
52
virtual
void
pop_task() {
return
; }
53
54
virtual
void
warning(
const
std::string &warn) {
return
; }
55
virtual
void
error(
const
std::string &err) {
return
; }
56
57
virtual
bool
amount_complete(
int
current,
int
total) {
return
true
; }
58
virtual
bool
amount_complete(
float
percent)
59
{
return
amount_complete((
int
)(percent*10000),10000); }
60
};
61
62
_ETL_END_NAMESPACE
63
64
/* === E X T E R N S ======================================================= */
65
66
/* === E N D =============================================================== */
67
68
#endif
69
#endif
/* THIS_CODE_IS_NOT_USED */
Generated on Mon Nov 16 2015 15:32:03 for ETL by
1.8.1.2