The Gaudi Framework
v32r2 (46d42edc)
GaudiHistoID.cpp
Go to the documentation of this file.
1
// ============================================================================
2
/* @file gaudiHistoID.cpp
3
*
4
* Implementation file for class GaudiAlg::ID
5
*
6
* @author Chris Jones Christopher.Rob.Jones@cern.ch
7
* @date 03/02/2006
8
*/
9
// ============================================================================
10
// Include Files
11
// ============================================================================
12
// STD & STL
13
// ============================================================================
14
#include <sstream>
15
// ============================================================================
16
// local
17
// ============================================================================
18
#include "
GaudiAlg/GaudiHistoID.h
"
19
// ============================================================================
20
GaudiAlg::ID::LiteralID
GaudiAlg::ID::idAsString
()
const
{
21
std::ostringstream
s
;
22
fillStream
(
s
);
23
return
s
.str();
24
}
25
// ============================================================================
26
// Operator overloading for ostream
27
// ============================================================================
28
std::ostream
&
GaudiAlg::ID::fillStream
(
std::ostream
&
s
)
const
{
29
if
( numeric() ) {
30
s
<< numericID();
31
}
else
if
( literal() ) {
32
s
<< literalID();
33
}
else
{
34
s
<<
"UNDEFINED"
;
35
}
36
return
s
;
37
}
38
// ============================================================================
39
// The END
40
// ============================================================================
std::string
STL class.
GaudiAlg::ID::idAsString
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
Definition:
GaudiHistoID.cpp:20
std::ostringstream
STL class.
GaudiAlg::ID::fillStream
GAUDI_API std::ostream & fillStream(std::ostream &s) const
Definition:
GaudiHistoID.cpp:28
GaudiHistoID.h
gaudirun.s
string s
Definition:
gaudirun.py:318
std::ostream
STL class.
GaudiAlg
src
lib
GaudiHistoID.cpp
Generated on Sat Sep 28 2019 18:06:45 for The Gaudi Framework by
1.8.15