LDMX Software
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 179 of file SimpleTableStreamers.cxx.

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

◆ 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 174 of file SimpleTableStreamers.cxx.

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

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 49 of file SimpleTableStreamers.cxx.

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

◆ 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 45 of file SimpleTableStreamers.cxx.

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

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