ATLAS Offline Software
Parameter.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 // Parameter.cxx
5 // TopoCore
6 // Created by Joerg Stelzer on 11/18/12.
7 
9 
10 using namespace std;
11 using namespace TCS;
12 
13 Parameter::Parameter( const string & name,
15  m_name(name),
16  m_value(value),
17  m_defaultValue(value),
18  m_isExtended(false)
19 {}
20 
21 
22 Parameter::Parameter( const string & name,
25  m_name(name),
26  m_value(value),
27  m_selection(selection),
28  m_defaultValue(value),
29  m_isExtended(true)
30 {}
31 
32 
33 namespace TCS {
34 
35 
36 std::ostream &
37 operator<<(std::ostream &o, const TCS::Parameter & p) {
38 
39  if(!p.isExtended()) {
40  o << p.name() << ": " << p.value();
41  }
42 
43  if(p.isExtended()) {
44  o << p.name() << ": " << p.value() << ": " << p.position() << ": " << p.selection();
45  }
46 
47  if(!p.isDefault()) {
48  o << " (default value: " << p.defaultValue() << ")";
49  }
50 
51  return o;
52 }
53 
54 
55 }
TCS::Parameter
Definition: Parameter.h:24
TCS::parType_t
uint32_t parType_t
Definition: Parameter.h:22
athena.value
value
Definition: athena.py:124
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
selection
std::string selection
Definition: fbtTestBasics.cxx:75
Parameter.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TCS::Parameter::Parameter
Parameter(const std::string &name, TCS::parType_t value)
Definition: Parameter.cxx:13
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::operator<<
std::ostream & operator<<(std::ostream &, const TCS::CountingConnector &)
Definition: CountingConnector.cxx:93