OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Friends | List of all members
SDDSColumn Class Reference

#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)
 

Detailed Description

Definition at line 10 of file SDDSColumn.h.

Member Typedef Documentation

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

Definition at line 37 of file SDDSColumn.h.

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

Definition at line 43 of file SDDSColumn.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

Definition at line 56 of file SDDSColumn.h.

References set_m, and value_m.

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.

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

Definition at line 35 of file SDDSColumn.cpp.

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

Referenced by operator<<().

Friends And Related Function Documentation

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

Definition at line 47 of file SDDSColumn.cpp.

Member Data Documentation

desc_t SDDSColumn::description_m
private

Definition at line 45 of file SDDSColumn.h.

Referenced by writeHeader().

std::string SDDSColumn::name_m
private

Definition at line 44 of file SDDSColumn.h.

Referenced by writeHeader(), and writeValue().

bool SDDSColumn::set_m
mutableprivate

Definition at line 51 of file SDDSColumn.h.

Referenced by addValue(), and writeValue().

variant_t SDDSColumn::value_m
private

Definition at line 46 of file SDDSColumn.h.

Referenced by addValue(), and writeValue().

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

Definition at line 48 of file SDDSColumn.h.

Referenced by writeValue().

unsigned short SDDSColumn::writePrecision_m
private

Definition at line 49 of file SDDSColumn.h.

Referenced by writeValue().


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