OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <SDDSColumn.h>
Public Member Functions | |
SDDSColumn (const std::string &name, const std::string &type, const std::string &unit, const std::string &desc, std::ios_base::fmtflags flags, unsigned short precision) | |
template<typename T > | |
void | addValue (const T &val) |
void | writeHeader (std::ostream &os, unsigned int colNr, const std::string &indent) const |
Protected Member Functions | |
void | writeValue (std::ostream &os) const |
Private Types | |
typedef std::tuple < std::string, std::string, std::string > | desc_t |
typedef boost::variant< float, double, long unsigned int, char, std::string > | variant_t |
Private Attributes | |
std::string | name_m |
desc_t | description_m |
variant_t | value_m |
std::ios_base::fmtflags | writeFlags_m |
unsigned short | writePrecision_m |
bool | set_m |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SDDSColumn &col) |
Definition at line 10 of file SDDSColumn.h.
|
private |
Definition at line 37 of file SDDSColumn.h.
|
private |
Definition at line 43 of file SDDSColumn.h.
SDDSColumn::SDDSColumn | ( | const std::string & | name, |
const std::string & | type, | ||
const std::string & | unit, | ||
const std::string & | desc, | ||
std::ios_base::fmtflags | flags, | ||
unsigned short | precision | ||
) |
Definition at line 6 of file SDDSColumn.cpp.
void SDDSColumn::addValue | ( | const T & | val | ) |
Definition at line 56 of file SDDSColumn.h.
void SDDSColumn::writeHeader | ( | std::ostream & | os, |
unsigned int | colNr, | ||
const std::string & | indent | ||
) | const |
Definition at line 20 of file SDDSColumn.cpp.
References description_m, and name_m.
|
protected |
Definition at line 35 of file SDDSColumn.cpp.
References name_m, set_m, value_m, writeFlags_m, and writePrecision_m.
Referenced by operator<<().
|
friend |
Definition at line 47 of file SDDSColumn.cpp.
|
private |
Definition at line 45 of file SDDSColumn.h.
Referenced by writeHeader().
|
private |
Definition at line 44 of file SDDSColumn.h.
Referenced by writeHeader(), and writeValue().
|
mutableprivate |
Definition at line 51 of file SDDSColumn.h.
Referenced by addValue(), and writeValue().
|
private |
Definition at line 46 of file SDDSColumn.h.
Referenced by addValue(), and writeValue().
|
private |
Definition at line 48 of file SDDSColumn.h.
Referenced by writeValue().
|
private |
Definition at line 49 of file SDDSColumn.h.
Referenced by writeValue().