MINT2
Mint
LoadingBar.h
Go to the documentation of this file.
1
#ifndef LOADINGBAR_HH
2
#define LOADINGBAR_HH
3
4
#include <iostream>
5
#include <vector>
6
#include <string>
7
#include <stdio.h>
/* printf */
8
#include <math.h>
/* floor */
9
#include <unistd.h>
10
11
class
LoadingBar
{
12
13
int
_nIterations
;
14
int
_nSteps
;
15
int
_prevStep
;
16
17
time_t
_tstart
;
18
19
public
:
20
21
LoadingBar
(
int
nIterations,
int
nSteps = 20);
22
23
void
printTimeDiff
(
double
minutes);
24
25
26
void
update
(
int
i);
27
28
~LoadingBar
();
29
30
};
31
32
33
#endif
34
35
LoadingBar::_prevStep
int _prevStep
Definition:
LoadingBar.h:15
LoadingBar::_nIterations
int _nIterations
Definition:
LoadingBar.h:13
LoadingBar::LoadingBar
LoadingBar(int nIterations, int nSteps=20)
Definition:
LoadingBar.cpp:3
LoadingBar::printTimeDiff
void printTimeDiff(double minutes)
Definition:
LoadingBar.cpp:15
LoadingBar::~LoadingBar
~LoadingBar()
Definition:
LoadingBar.cpp:79
LoadingBar::update
void update(int i)
Definition:
LoadingBar.cpp:33
LoadingBar::_nSteps
int _nSteps
Definition:
LoadingBar.h:14
LoadingBar::_tstart
time_t _tstart
Definition:
LoadingBar.h:17
LoadingBar
Definition:
LoadingBar.h:11
Generated by
1.8.15