OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
SDDSColumn Class Reference

#include <SDDSColumn.h>

Collaboration diagram for SDDSColumn:
Collaboration graph

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 std::variant< float, double, int, 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)
 

Detailed Description

Definition at line 26 of file SDDSColumn.h.

Member Typedef Documentation

◆ desc_t

typedef std::tuple<std::string, std::string, std::string> SDDSColumn::desc_t
private

Definition at line 43 of file SDDSColumn.h.

◆ variant_t

typedef std::variant<float, double, int, long unsigned int, char, std::string> SDDSColumn::variant_t
private

Definition at line 45 of file SDDSColumn.h.

Constructor & Destructor Documentation

◆ SDDSColumn()

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 25 of file SDDSColumn.cpp.

Member Function Documentation

◆ addValue()

template<typename T >
void SDDSColumn::addValue ( const T val)

Definition at line 57 of file SDDSColumn.h.

References set_m, and value_m.

◆ writeHeader()

void SDDSColumn::writeHeader ( std::ostream &  os,
unsigned int  colNr,
const std::string &  indent 
) const

Definition at line 61 of file SDDSColumn.cpp.

References description_m, and name_m.

◆ writeValue()

void SDDSColumn::writeValue ( std::ostream &  os) const
protected

Definition at line 74 of file SDDSColumn.cpp.

References name_m, set_m, value_m, writeFlags_m, and writePrecision_m.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SDDSColumn col 
)
friend

Definition at line 91 of file SDDSColumn.cpp.

Member Data Documentation

◆ description_m

desc_t SDDSColumn::description_m
private

Definition at line 47 of file SDDSColumn.h.

Referenced by writeHeader().

◆ name_m

std::string SDDSColumn::name_m
private

Definition at line 46 of file SDDSColumn.h.

Referenced by writeHeader(), and writeValue().

◆ set_m

bool SDDSColumn::set_m
mutableprivate

Definition at line 53 of file SDDSColumn.h.

Referenced by addValue(), and writeValue().

◆ value_m

variant_t SDDSColumn::value_m
private

Definition at line 48 of file SDDSColumn.h.

Referenced by addValue(), and writeValue().

◆ writeFlags_m

std::ios_base::fmtflags SDDSColumn::writeFlags_m
private

Definition at line 50 of file SDDSColumn.h.

Referenced by operator<<(), and writeValue().

◆ writePrecision_m

unsigned short SDDSColumn::writePrecision_m
private

Definition at line 51 of file SDDSColumn.h.

Referenced by writeValue().


The documentation for this class was generated from the following files: