libpappsomspp
Library for mass spectrometry
uimonitortextpercent.h
Go to the documentation of this file.
1 /**
2  * \file pappsomspp/processing/uimonitor/uimonitortextpercent.h
3  * \date 25/9/2021
4  * \author Olivier Langella
5  * \brief simle text monitor implementation of the User Interface Monitor
6  *displaying percent progression
7  **/
8 
9 /*******************************************************************************
10  * Copyright (c) 2021 Olivier Langella
11  *<Olivier.Langella@universite-paris-saclay.fr>.
12  *
13  * This file is part of the PAPPSOms++ library.
14  *
15  * PAPPSOms++ is free software: you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation, either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * PAPPSOms++ is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
27  *
28  ******************************************************************************/
29 
30 #pragma once
31 
32 #include "uimonitorinterface.h"
33 #include "uimonitortext.h"
34 #include <QTextStream>
35 
36 namespace pappso
37 {
38 
39 
40 /**
41  * @todo write docs
42  */
44 {
45  public:
46  /**
47  * Default constructor
48  */
49  UiMonitorTextPercent(QTextStream &output_stream);
50 
51  /**
52  * Destructor
53  */
54  virtual ~UiMonitorTextPercent();
55 
56 
57  /** @brief count steps
58  * report when a step is computed in an algorithm
59  */
60  virtual void count() override;
61 
62 
63  virtual void setTotalSteps(std::size_t total_number_of_steps);
64 
65 
66  protected:
67  int m_unit;
68 };
69 } // namespace pappso
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
generic interface to monitor any long process A long process needs to be interrupted by the user and ...
simle text monitor implementation of the User Interface Monitor