Initial Commit
This commit is contained in:
parent
2174872b77
commit
be49470a72
3 changed files with 62 additions and 0 deletions
26
source/Progress.h
Normal file
26
source/Progress.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
//
|
||||
// Created by tara on 5/6/23.
|
||||
//
|
||||
|
||||
#ifndef LIBAC_CPP_PROGRESS_H
|
||||
#define LIBAC_CPP_PROGRESS_H
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
namespace libac {
|
||||
|
||||
class Progress {
|
||||
private:
|
||||
int ticks = 0;
|
||||
int current = 0;
|
||||
int max = 100;
|
||||
public:
|
||||
static int getPercentOf(int cur, int max);
|
||||
int getPercent();
|
||||
void increment();
|
||||
std::string getProgressStr();
|
||||
};
|
||||
|
||||
} // libac
|
||||
|
||||
#endif //LIBAC_CPP_PROGRESS_H
|
Loading…
Add table
Add a link
Reference in a new issue