SOSpin is hosted by Hepforge, IPPP Durham
SOSpin  1.0.0
progressStatus.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // SOSpin Library
3 // Copyright (C) 2015 SOSpin Project
4 //
5 // Authors:
6 //
7 // Nuno Cardoso (nuno.cardoso@tecnico.ulisboa.pt)
8 // David Emmanuel-Costa (david.costa@tecnico.ulisboa.pt)
9 // Nuno Gonçalves (nunogon@deec.uc.pt)
10 // Catarina Simoes (csimoes@ulg.ac.be)
11 //
12 // ----------------------------------------------------------------------------
13 // This file is part of SOSpin Library.
14 //
15 // SOSpin Library 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 any
18 // later version.
19 //
20 // SOSpin Library 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 SOSpin Library. If not, see <http://www.gnu.org/licenses/>.
27 // ----------------------------------------------------------------------------
28 
29 // progressStatus.h created on 27/02/2015
30 //
31 // This file contains the functions necessary to do things
32 // in the SOSpin Library.
33 //
34 // Revision 1.1 28/02/2015 23:19:29 david
35 // License updated
36 //
37 
43 #ifndef PROGRESSSTATUS_H_DEF
44 
45 #define PROGRESSSTATUS_H_DEF
46 
47 
48 
49 
50 
51 #include <iostream>
52 
53 #include <cstring>
54 
55 #include <sstream>
56 
57 #include <cstdlib>
58 
59 #include <string>
60 
61 
62 
63 
64 
65 namespace sospin {
66 
67 
68 
69 void DoProgress( std::string label, unsigned int step, unsigned int total );
70 
71 
72 
73 void DoProgress( std::string label, unsigned int step, unsigned int total, unsigned int print_at_steps );
74 
75 
76 
77 }
78 
79 
80 
81 #endif // PROGRESSSTATUS_H_DEF
82 
void DoProgress(string label, unsigned int step, unsigned int total, unsigned int interval)