ATLAS Offline Software
Identifier32.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 #include <algorithm>
8 #include <cstdarg>
9 #include <cstdio>
10 
11 #include <iostream>
12 #include <iomanip>
13 
14 
15 //-----------------------------------------------
16 std::string Identifier32::getString() const
17 {
18  std::string result;
19  char temp[20];
20 
21  sprintf (temp, "0x%x", (unsigned int)m_id);
22  result += temp;
23  return (result);
24 }
25 
26 //-----------------------------------------------
27 void Identifier32::show () const
28 {
31  const Identifier32& me = *this;
32  std::cout << me.getString();
33 }
34 
35 
Identifier32::show
void show() const
Print out in hex form.
Definition: Identifier32.cxx:27
Identifier32
Definition: Identifier32.h:25
get_generator_info.result
result
Definition: get_generator_info.py:21
athena.value
value
Definition: athena.py:122
Identifier32.h
Identifier32::m_id
value_type m_id
Definition: Identifier32.h:110
Identifier32::getString
std::string getString() const
Provide a string form of the identifier - hexadecimal.
Definition: Identifier32.cxx:16