4 const std::string&
type,
5 const std::string& unit,
6 const std::string& desc,
7 std::ios_base::fmtflags flags,
12 "column name '" + name +
"' already exists");
21 const std::string& indent)
const {
22 for (
unsigned int i = 0; i <
columns_m.size(); ++ i) {
24 col.writeHeader(os, i + 1, indent);
void writeRow(std::ostream &os) const
std::vector< SDDSColumn > columns_m
The base class for all OPAL exceptions.
std::map< std::string, unsigned int > name2idx_m
void addColumn(const std::string &name, const std::string &type, const std::string &unit, const std::string &desc, std::ios_base::fmtflags flags=std::ios_base::scientific, unsigned short precision=15)
void writeHeader(std::ostream &os, const std::string &indent) const
Inform & endl(Inform &inf)