ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCablings
MuonCablingTools
MuonCablingTools
ShowRequest.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONCABLINGTOOLS_PRINTREQ_H
6
#define MUONCABLINGTOOLS_PRINTREQ_H
7
8
#include "GaudiKernel/MsgStream.h"
9
#include <iostream>
10
#include <sstream>
11
12
template
<
class
Type>
class
ShowRequest
{
13
public
:
14
const
Type
*
m_object
;
15
bool
m_detail
;
16
17
public
:
18
ShowRequest
(
const
Type
&,
bool
);
19
ShowRequest
(
const
Type
*,
bool
);
20
~ShowRequest
() {}
21
};
22
23
template
<
class
Type>
ShowRequest<Type>::ShowRequest
(
const
Type
& obj,
bool
detail
) :
m_object
(&obj),
m_detail
(
detail
) {}
24
25
template
<
class
Type>
ShowRequest<Type>::ShowRequest
(
const
Type
* obj,
bool
detail
) :
m_object
(obj),
m_detail
(
detail
) {}
26
27
template
<
class
Type> std::ostream&
operator<<
(std::ostream& stream,
const
ShowRequest<Type>
&
print
) {
28
std::ostringstream display;
29
print
.m_object->Print(display,
print
.m_detail);
30
stream << display.str();
31
return
stream;
32
}
33
34
template
<
class
Type> MsgStream&
operator<<
(MsgStream& stream,
const
ShowRequest<Type>
&
print
) {
35
std::ostringstream display;
36
print
.m_object->Print(display,
print
.m_detail);
37
stream << display.str();
38
return
stream;
39
}
40
41
#endif
operator<<
std::ostream & operator<<(std::ostream &stream, const ShowRequest< Type > &print)
Definition
ShowRequest.h:27
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
ShowRequest
Definition
ShowRequest.h:12
ShowRequest::m_detail
bool m_detail
Definition
ShowRequest.h:15
ShowRequest::~ShowRequest
~ShowRequest()
Definition
ShowRequest.h:20
ShowRequest::ShowRequest
ShowRequest(const Type &, bool)
Definition
ShowRequest.h:23
ShowRequest::m_object
const Type * m_object
Definition
ShowRequest.h:14
detail
Definition
extract_histogram_tag.cxx:14
Type
Generated on
for ATLAS Offline Software by
1.14.0