ATLAS Offline Software
Loading...
Searching...
No Matches
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
23namespace 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
49
50
51void
53SetName( const std::string& name_ )
54{
55 m_name.SetString( name_.c_str() );
56}
57
58
59const char*
61GetName() const
62{
63 return m_name.GetName();
64}
65
66
67void
69SetValue( const std::string& value_ )
70{
71 m_value.SetString( value_.c_str() );
72}
73
74
75const char*
77GetValue() const
78{
79 return m_value.GetName();
80}
81
82
83void
85PrintIOStream( std::ostream& o ) const
86{
87 o << GetName() << " = " << GetValue() << "\n";
88}
89
90TList *
92GetList()
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
105std::ostream& operator<<( std::ostream& o, const dqi::HanConfigParMap& p )
106{
107 p.PrintIOStream(o);
108 return o;
109}
110
111
112std::ostream& operator<<( std::ostream& o, const dqi::HanConfigParMap* p )
113{
114 p->PrintIOStream(o);
115 return o;
116}
117
std::ostream & operator<<(std::ostream &o, const dqi::HanConfigParMap &p)
ClassImp(xAOD::Experimental::RFileChecker) namespace xAOD
virtual const char * GetValue() const
virtual void SetValue(const std::string &value_)
virtual TList * GetList()
virtual void SetName(const std::string &name_)
virtual void PrintIOStream(std::ostream &o) const
virtual const char * GetName() const