|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <SDDSColumnSet.h>
Public Member Functions | |
| SDDSColumnSet () | |
| 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) |
| template<typename T> | |
| void | addColumnValue (const std::string &name, const T &val) |
| void | writeHeader (std::ostream &os, const std::string &indent) const |
| void | writeRow (std::ostream &os) const |
| bool | hasColumns () const |
Private Attributes | |
| std::vector< SDDSColumn > | columns_m |
| std::map< std::string, unsigned int > | name2idx_m |
Definition at line 29 of file SDDSColumnSet.h.
|
inline |
Definition at line 58 of file SDDSColumnSet.h.
| void SDDSColumnSet::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 ) |
Definition at line 20 of file SDDSColumnSet.cpp.
References columns_m, name, and name2idx_m.
| void SDDSColumnSet::addColumnValue | ( | const std::string & | name, |
| const T & | val ) |
Definition at line 63 of file SDDSColumnSet.h.
References columns_m, name, and name2idx_m.
|
inline |
Definition at line 78 of file SDDSColumnSet.h.
References name2idx_m.
| void SDDSColumnSet::writeHeader | ( | std::ostream & | os, |
| const std::string & | indent ) const |
Definition at line 37 of file SDDSColumnSet.cpp.
References columns_m.
| void SDDSColumnSet::writeRow | ( | std::ostream & | os | ) | const |
Definition at line 46 of file SDDSColumnSet.cpp.
References columns_m.
|
private |
Definition at line 52 of file SDDSColumnSet.h.
Referenced by addColumn(), addColumnValue(), writeHeader(), and writeRow().
|
private |
Definition at line 53 of file SDDSColumnSet.h.
Referenced by addColumn(), addColumnValue(), and hasColumns().