ATLAS Offline Software
Loading...
Searching...
No Matches
Identifier32.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7
8#include "GaudiKernel/MsgStream.h"
9#include <format>
10
11
12std::string Identifier32::getString() const{
13 std::string s = std::format("0x{:x}", m_id);
14 return s;
15}
16
17void
18Identifier32::show (std::ostream & out) const{
19 out << *this;
20}
21
22void
23Identifier32::show (MsgStream & out) const{
24 out << getString();
25}
26
27
28std::ostream &
29operator << (std::ostream &out, const Identifier32 &c){
30 out<<std::string(c);
31 return out;
32}
33
34
35
std::ostream & operator<<(std::ostream &out, const Identifier32 &c)
void show(std::ostream &out=std::cout) const
Print out in hex form.
std::string getString() const
Provide a string form of the identifier - hexadecimal.
value_type m_id