ATLAS Offline Software
Loading...
Searching...
No Matches
Value.cxx
Go to the documentation of this file.
1
19
20
21#include "Value.h"
22
23
24std::ostream& operator<<(std::ostream& s, const Value& v) {
25
26 const std::vector<std::string>& vals = v.Val();
27 s << v.Tag() << "\t= ";
28 if ( vals.size()>1 ) {
29 s << "{ ";
30 if ( vals.size()>12 ) s<< "\t";
31 for ( unsigned i=0 ; i<vals.size()-1 ; i++ ) {
32 if ( i && i%12==0 ) s << "\n\t\t";
33 s << vals[i] << ", ";
34 }
35 }
36 if ( vals.size()>0 ) s << vals[vals.size()-1];
37 if ( vals.size()>12 ) s << " ";
38 if ( vals.size()>1 ) s << " }";
39
40 return s;
41}
42
43
44
45
46
47
48
49
50
51
std::ostream & operator<<(std::ostream &s, const Value &v)
Definition Value.cxx:24
tag-value pair class.
Definition Value.h:39