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#include <iostream>
11
12
13
14std::string Identifier32::getString() const{
15 std::string s = std::format("0x{:x}", m_id);
16 return s;
17}
18
19void
20Identifier32::show (std::ostream & out) const{
21 out << *this;
22}
23
24void
25Identifier32::show (MsgStream & out) const{
26 out << getString();
27}
28
29
30std::ostream &
31operator << (std::ostream &out, const Identifier32 &c){
32 out<<std::string(c);
33 return out;
34}
35
36
37
std::ostream & operator<<(std::ostream &out, const Identifier32 &c)
std::string getString() const
Provide a string form of the identifier - hexadecimal.
value_type m_id
void show(std::ostream &out) const
Print out in hex form.