LDMX Software
Static Public Member Functions | List of all members
conditions::utility::SimpleTableStreamerCSV Class Reference

Static Public Member Functions

static void store (const IntegerTableCondition &, std::ostream &, bool expandIds=true)
 Convert the table into a stream.
 
static void store (const conditions::DoubleTableCondition &, std::ostream &, bool expandIds=true)
 
static void load (IntegerTableCondition &, std::istream &)
 Load the table from a stream Columns must be defined by the user.
 
static void load (conditions::DoubleTableCondition &, std::istream &)
 

Detailed Description

Definition at line 21 of file SimpleTableStreamers.h.

Member Function Documentation

◆ load() [1/2]

void conditions::utility::SimpleTableStreamerCSV::load ( conditions::DoubleTableCondition table,
std::istream &  is 
)
static

Definition at line 180 of file SimpleTableStreamers.cxx.

181 {
182 loadT<conditions::DoubleTableCondition, double>(table, is);
183}

◆ load() [2/2]

void conditions::utility::SimpleTableStreamerCSV::load ( IntegerTableCondition table,
std::istream &  is 
)
static

Load the table from a stream Columns must be defined by the user.

Matching columns from the CSV file will be copied in. The first row of the table must be the column headers. If the DetID column is not present or zero, the loader will attempt to use the "subdetector" column to determine which other columns should be used to construct a detector id using the interpreter.

Definition at line 175 of file SimpleTableStreamers.cxx.

176 {
177 loadT<IntegerTableCondition, int>(table, is);
178}

Referenced by conditions::SimpleCSVTableProvider::getCondition().

◆ store() [1/2]

void conditions::utility::SimpleTableStreamerCSV::store ( const conditions::DoubleTableCondition t,
std::ostream &  s,
bool  expandIds = true 
)
static

Definition at line 50 of file SimpleTableStreamers.cxx.

51 {
52 storeT<conditions::DoubleTableCondition, double>(t, s, expandIds);
53}

◆ store() [2/2]

void conditions::utility::SimpleTableStreamerCSV::store ( const IntegerTableCondition t,
std::ostream &  s,
bool  expandIds = true 
)
static

Convert the table into a stream.

Definition at line 46 of file SimpleTableStreamers.cxx.

47 {
48 storeT<IntegerTableCondition, int>(t, s, expandIds);
49}

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