ATLAS Offline Software
Database
APR
CollectionUtilities
CollectionUtilities
Progress.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef UTILITIES_COLLECTION_PROGRESS
6
#define UTILITIES_COLLECTION_PROGRESS
7
8
#include "
CollectionUtilities/ArgQual.h
"
9
#include "
CollectionUtilities/CmdLineArgs2.h
"
10
11
/**********************************************************
12
13
Progress indicator options and implementation
14
Qualifiers: -progress <filename>
15
16
**********************************************************/
17
18
#include <fstream>
19
20
namespace
pool
21
{
22
23
class
Progress :
public
CmdLineArgs2
24
{
25
public
:
26
28
Progress
( );
29
30
virtual
~Progress
() {}
31
33
bool
evalArgs
(std::vector<std::string>&
argv
);
34
35
void
print
(
const
std::string&
action
,
int
percentage );
36
37
38
private
:
39
bool
m_valid
;
40
bool
m_stdout
;
41
std::string
m_outFName
;
42
std::ofstream
m_file
;
43
};
44
45
}
// end pool namespace
46
47
#endif
48
49
pool::Progress::Progress
Progress()
Constructors.
pool::Progress::print
void print(const std::string &action, int percentage)
pool::Progress::m_stdout
bool m_stdout
Definition:
Progress.h:50
ArgQual.h
pool
pool namespace
Definition:
libname.h:15
pool::Progress::~Progress
virtual ~Progress()
Definition:
Progress.h:40
pool::Progress::m_valid
bool m_valid
Definition:
Progress.h:49
CmdLineArgs2.h
LArCellNtuple.argv
argv
Definition:
LArCellNtuple.py:152
pool::Progress::m_file
std::ofstream m_file
Definition:
Progress.h:52
python.CaloScaleNoiseConfig.action
action
Definition:
CaloScaleNoiseConfig.py:77
pool::Progress::m_outFName
std::string m_outFName
Definition:
Progress.h:51
pool::Progress::evalArgs
bool evalArgs(std::vector< std::string > &argv)
Apply the criteria in the QualList to the argv[].
Generated on Thu Nov 7 2024 21:24:13 for ATLAS Offline Software by
1.8.18