CMS 3D CMS Logo

OStreamColumn.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 namespace edm {
6 
8  : OStreamColumn{t,0}
9  {}
10 
12  std::size_t const w)
13  : title_{t}
14  , width_{std::max(w, title_.size())}
15  {}
16 
17  std::ostream& operator<<(std::ostream& t, OStreamColumn const& c)
18  {
19  t << std::setw(c.width_) << c.title_;
20  return t;
21  }
22 
23 }
const double w
Definition: UKUtility.cc:23
std::string title_
Definition: OStreamColumn.h:67
OStreamColumn(std::string const &t)
Definition: OStreamColumn.cc:7
std::size_t width_
Definition: OStreamColumn.h:68
HLT enums.
friend std::ostream & operator<<(std::ostream &, OStreamColumn const &)