Home | Develop | Download | Contact
example_ra_progress.cpp
1
26#include <Pds/Ra>
27
28int main(void)
29{
30 unsigned int n;
31 unsigned int N=200;
32 unsigned int BarSize=40;
33 double T=0.02;
34
35
36 for(n=0;n<N;n++)
37 {
39 Pds::Ra::ProgressBar(BarSize,n,N,false,"Some text");
40 }
41 std::cout<<std::endl;
42
43
44 for(n=0;n<N;n++)
45 {
47 Pds::Ra::ProgressBarWithTime(BarSize,n,N,false,"Some text");
48 }
49 std::cout<<std::endl;
50
51
52 for(n=0;n<N;n++)
53 {
55 Pds::Ra::ProgressPercent(n,N,false,"Some text");
56 }
57 std::cout<<std::endl;
58
59 for(n=0;n<N;n++)
60 {
62 Pds::Ra::ProgressPercentWithTime(n,N,false,"Some text");
63 }
64 std::cout<<std::endl;
65
66
67 for(n=0;n<N;n++)
68 {
70 Pds::Ra::Percent(n,N,false,"Some text");
71 }
72 std::cout<<std::endl;
73
74
75 for(n=0;n<N;n++)
76 {
78 Pds::Ra::PercentWithTime(n,N,false,"Some text");
79 }
80 std::cout<<std::endl;
81
82}
void Percent(unsigned int n, unsigned int N, bool Jump, std::string str)
muestra un porcentaje de progreso en el formato
void ProgressPercent(unsigned int n, unsigned int N, bool Jump, std::string str)
muestra un porcentaje de progreso en el formato
void PercentWithTime(unsigned int n, unsigned int N, bool Jump, std::string str)
muestra un porcentaje de progreso en el formato
void ProgressBarWithTime(unsigned int BarSize, unsigned int n, unsigned int N, bool Jump, std::string str)
muestra una barra de progreso en el formato
void ProgressBar(unsigned int BarSize, unsigned int n, unsigned int N, bool Jump, std::string str="")
muestra una barra de progreso en el formato
void ProgressPercentWithTime(unsigned int n, unsigned int N, bool Jump, std::string str)
muestra un porcentaje de progreso en el formato
void DelayS(double seconds)
Genera un retardo en segundos.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed