ATLAS Offline Software
HanConfigParMap.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // **********************************************************************
6 // $Id: HanConfigParMap.cxx,v 1.1 2008-09-10 11:40:09 ponyisi Exp $
7 // **********************************************************************
8 
10 
11 #include <iomanip>
12 #include <sstream>
13 
14 #include <TObjString.h>
15 
16 
17 //Get rid of Root macros that confuse Doxygen
21 
22 
23 namespace dqi {
24 
25 // *********************************************************************
26 // Public Methods
27 // *********************************************************************
28 
31  : m_name("")
32  , m_value("")
33 {
34 }
35 
38  : TObject()
39  , m_name(other.m_name)
40  , m_value(other.m_value)
41 {
42 }
43 
44 
47 {
48 }
49 
50 
51 void
53 SetName( const std::string& name_ )
54 {
55  m_name.SetString( name_.c_str() );
56 }
57 
58 
59 const char*
61 GetName() const
62 {
63  return m_name.GetName();
64 }
65 
66 
67 void
69 SetValue( const std::string& value_ )
70 {
71  m_value.SetString( value_.c_str() );
72 }
73 
74 
75 const char*
77 GetValue() const
78 {
79  return m_value.GetName();
80 }
81 
82 
83 void
85 PrintIOStream( std::ostream& o ) const
86 {
87  o << GetName() << " = " << GetValue() << "\n";
88 }
89 
90 TList *
92 GetList()
93 {
94  TList *ret = new TList();
95 
96  ret->SetName( this->GetName() );
97  ret->Add( new TObjString(m_value.GetName()) );
98 
99  return ret;
100 }
101 
102 } // namespace dqi
103 
104 
105 std::ostream& operator<<( std::ostream& o, const dqi::HanConfigParMap& p )
106 {
107  p.PrintIOStream(o);
108  return o;
109 }
110 
111 
112 std::ostream& operator<<( std::ostream& o, const dqi::HanConfigParMap* p )
113 {
114  p->PrintIOStream(o);
115  return o;
116 }
117 
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
HanConfigParMap.h
dqi::HanConfigParMap::~HanConfigParMap
virtual ~HanConfigParMap()
Definition: HanConfigParMap.cxx:46
dqi::HanConfigParMap::SetName
virtual void SetName(const std::string &name_)
Definition: HanConfigParMap.cxx:53
dqi::HanConfigParMap::SetValue
virtual void SetValue(const std::string &value_)
Definition: HanConfigParMap.cxx:69
dqi::HanConfigParMap::HanConfigParMap
HanConfigParMap()
Definition: HanConfigParMap.cxx:30
dqi::HanConfigParMap
Definition: HanConfigParMap.h:18
dqi::HanConfigParMap::GetValue
virtual const char * GetValue() const
Definition: HanConfigParMap.cxx:77
ClassImp
ClassImp(xAOD::TFileChecker) namespace xAOD
Definition: TFileChecker.cxx:28
ret
T ret(T t)
Definition: rootspy.cxx:260
dqi::HanConfigParMap::GetList
virtual TList * GetList()
Definition: HanConfigParMap.cxx:92
dqi::HanConfigParMap::PrintIOStream
virtual void PrintIOStream(std::ostream &o) const
Definition: HanConfigParMap.cxx:85
dqi::HanConfigParMap::GetName
virtual const char * GetName() const
Definition: HanConfigParMap.cxx:61
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
dqi::HanConfigParMap::m_name
TObjString m_name
Definition: HanConfigParMap.h:42
dqi::HanConfigParMap::m_value
TObjString m_value
Definition: HanConfigParMap.h:43
dqi
Definition: CompositeAlgorithm.h:16
operator<<
std::ostream & operator<<(std::ostream &o, const dqi::HanConfigParMap &p)
Definition: HanConfigParMap.cxx:105