mars_lib  0.1.0.3dc76ee85e09
Modular and Robust Sensor-Fusion
progress_indicator.h
Go to the documentation of this file.
1 // Copyright (C) 2021 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
2 //
3 // All rights reserved.
4 //
5 // This software is licensed under the terms of the BSD-2-Clause-License with
6 // no commercial use allowed, the full terms of which are made available
7 // in the LICENSE file. No license in patents is granted.
8 //
9 // You can contact the author at <christian.brommer@ieee.org>
10 
11 #ifndef PROGRESSINDICATOR_H
12 #define PROGRESSINDICATOR_H
13 
14 #include <iomanip>
15 #include <iostream>
16 
17 namespace mars
18 {
20 {
21 public:
22  ProgressIndicator(const int& total_iterations, const int& step_width);
23 
24  void next_step();
25 
26 private:
27  const double total_iterations_;
28  const double step_width_;
29 
30  double current_progress_{ 0 };
32 };
33 } // namespace mars
34 
35 #endif // PROGRESSINDICATOR_H
Definition: progress_indicator.h:20
int current_iteration_
Definition: progress_indicator.h:31
ProgressIndicator(const int &total_iterations, const int &step_width)
const double total_iterations_
Definition: progress_indicator.h:27
const double step_width_
Definition: progress_indicator.h:28
double current_progress_
Definition: progress_indicator.h:30
Definition: buffer.h:27