Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
b
d
e
f
h
i
l
m
n
o
p
s
t
v
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
n
o
p
s
t
u
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
d
e
f
h
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
testProgressBar.cpp
Go to the documentation of this file.
1
16
29
31
#include <iostream>
32
#include "DGtal/base/Common.h"
33
34
#ifdef UNIX
35
#include <unistd.h>
36
#endif
37
39
40
using namespace
std
;
41
using namespace
DGtal
;
42
44
// Functions for testing class ProgressBar.
46
50
bool
testProgressBar
()
51
{
52
trace
.beginBlock (
"Testing progress ..."
);
53
55
for
(
unsigned
int
i=0; i <= 10 ; ++i)
56
{
57
trace
.progressBar(i,10);
58
#ifdef UNIX
59
usleep(50000);
60
#endif
61
}
62
trace
.info() << std::endl;
63
trace
.endBlock();
64
65
return
true
;
66
}
50
bool
testProgressBar
() {
…
}
67
69
// Standard services - public :
70
71
int
main
(
int
argc,
char
** argv )
72
{
73
trace
.beginBlock (
"Testing class ProgressBar"
);
74
trace
.info() <<
"Args:"
;
75
for
(
int
i = 0; i < argc; ++i )
76
trace
.info() <<
" "
<< argv[ i ];
77
trace
.info() << endl;
78
79
bool
res =
testProgressBar
();
// && ... other tests
80
trace
.emphase() << ( res ?
"Passed."
:
"Error."
) << endl;
81
trace
.endBlock();
82
return
res ? 0 : 1;
83
}
71
int
main
(
int
argc,
char
** argv ) {
…
}
84
// //
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::trace
Trace trace
std
STL namespace.
main
int main()
Definition
testBits.cpp:56
testProgressBar
bool testProgressBar()
Definition
testProgressBar.cpp:50
tests
base
testProgressBar.cpp
Generated on
for DGtal by
1.14.0