CMS 3D CMS Logo

OStreamColumn.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 namespace edm {
6 
8 
9  OStreamColumn::OStreamColumn(std::string const& t, std::size_t const w)
10  : title_{t}, width_{std::max(w, title_.size())} {}
11 
12  std::ostream& operator<<(std::ostream& t, OStreamColumn const& c) {
13  t << std::setw(c.width_) << c.title_;
14  return t;
15  }
16 
17 } // namespace edm
T w() const
OStreamColumn(std::string const &t)
Definition: OStreamColumn.cc:7
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.