AmpGen 2.1
Loading...
Searching...
No Matches
ProgressBar.h
Go to the documentation of this file.
1#ifndef AMPGEN_PROGRESSBAR_H
2#define AMPGEN_PROGRESSBAR_H
3
4#include <string>
5namespace AmpGen {
6 class ProgressBar {
7 public:
8 ProgressBar(const size_t& width, const std::string& context);
10 void print(const double& percentage, const std::string& message="");
11 void finish();
12 private:
13 size_t m_width;
14 int m_lastPercent;
15 std::string m_context;
16 std::string m_lastMessage = {""};
17 bool m_finished = {false};
18 };
19}
20
21#endif
ProgressBar(const size_t &width, const std::string &context)
void print(const double &percentage, const std::string &message="")
Expression width(const Expression &s, const Expression &s1, const Expression &s2, const Expression &mass, const Expression &width, const Expression &radius, unsigned int L, DebugSymbols *dbexpressions=nullptr)