ATLAS Offline Software
Loading...
Searching...
No Matches
StoreGate/src/VarHandleKeyArray.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace Gaudi {
8 namespace Parsers {
9
10
21 parse(SG::VarHandleKeyArray& v, const std::string& s)
22 {
23 std::vector<std::string> vp;
24 StatusCode sc = Gaudi::Parsers::parse(vp, s);
25
26 if (sc.isSuccess())
27 sc = v.assign( vp );
28
29 return sc;
30 }
31
32 } //> ns Parsers
33
34 namespace Utils {
35
36
46 std::ostream&
47 toStream(const SG::VarHandleKeyArray& v, std::ostream& o)
48 {
49 std::print (o, "[{}]", v.toString());
50 return o;
51 }
52
53 } //> ns Utils
54} //> ns Gaudi
55
56
57namespace SG {
58
59
60std::ostream& operator<<(std::ostream& s, const SG::VarHandleKeyArray& m) {
61 std::print (s, "{}", m);
62 return s;
63}
64
65
66} //namespace SG
static Double_t sc
Base class for VarHandleKeyArray for reading from StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
std::ostream & toStream(const SG::VarHandleKeyArray &v, std::ostream &o)
Gaudi function used to convert a property to a string.
=============================================================================
Forward declaration.
std::ostream & operator<<(std::ostream &os, const ArenaAllocatorBase::Stats::Stat &stat)
Format a statistic structure.