#include <Setting.h>
|
std::shared_ptr< std::map
< std::string, int > > | colDict_ |
|
std::shared_ptr< std::vector
< std::string > > | columns_ |
|
std::string * | logText_ |
|
std::shared_ptr< std::vector
< std::string > > | row_ |
|
std::string | tableId_ |
|
std::shared_ptr< std::vector
< std::string > > | types_ |
|
Definition at line 22 of file Setting.h.
l1t::TableRow::TableRow |
( |
| ) |
|
|
inline |
l1t::TableRow::TableRow |
( |
const std::vector< std::string > & |
row, |
|
|
std::string * |
lt |
|
) |
| |
Definition at line 178 of file Setting.cc.
References logText_, lt, and row_.
180 row_ = std::shared_ptr< std::vector<std::string> >(
new std::vector<std::string>(row));
std::shared_ptr< std::vector< std::string > > row_
< trclass="colgroup">< tdclass="colgroup"colspan=5 > DT local reconstruction</td ></tr >< tr >< td >< ahref="classDTRecHit1DPair.html"> DTRecHit1DPair</a ></td >< td >< ahref="DataFormats_DTRecHit.html"> edm::RangeMap & lt
l1t::TableRow::~TableRow |
( |
| ) |
|
|
inline |
std::vector<std::string> l1t::TableRow::getColumnNames |
( |
| ) |
|
|
inline |
Definition at line 34 of file Setting.h.
References columns_.
std::shared_ptr< std::vector< std::string > > columns_
std::vector<std::string> l1t::TableRow::getRow |
( |
| ) |
|
|
inline |
Definition at line 32 of file Setting.h.
References row_.
std::shared_ptr< std::vector< std::string > > row_
std::string l1t::TableRow::getRowAsStr |
( |
| ) |
|
Definition at line 208 of file Setting.cc.
References row_.
Referenced by getRowValue().
210 std::ostringstream str;
211 for (
auto it=
row_->begin(); it!=
row_->end(); ++it)
std::shared_ptr< std::vector< std::string > > row_
template<class varType >
varType l1t::TableRow::getRowValue |
( |
const std::string & |
col | ) |
|
Definition at line 115 of file Setting.h.
References colDict_, getRowAsStr(), logText_, row_, and tableId_.
117 std::map<std::string,int>::const_iterator it =
colDict_->find(
col);
119 throw std::runtime_error (
"Column " +
col +
"not found in table " +
tableId_);
123 std::ostringstream tempStr;
124 tempStr <<
"l1t::Setting::getRowValue\tReturning value " << convertVariable<varType>(
row_->at(it->second)) <<
" from table " <<
tableId_ <<
" and row " << this->
getRowAsStr() << std::endl;
127 return convertVariable<varType>(
row_->at(it->second));
std::shared_ptr< std::map< std::string, int > > colDict_
std::shared_ptr< std::vector< std::string > > row_
std::string getRowAsStr()
void l1t::TableRow::setLogStringVar |
( |
std::string * |
strVar | ) |
|
|
inline |
void l1t::TableRow::setRowColumns |
( |
const std::vector< std::string > & |
columns | ) |
|
Definition at line 184 of file Setting.cc.
References colDict_, mps_check::columns, columns_, and i.
187 columns_ = std::shared_ptr< std::vector<std::string> >(
new std::vector<std::string>(
columns));
192 colDict_ = std::shared_ptr< std::map<std::string,int> >(
new std::map<std::string,int>());
std::shared_ptr< std::map< std::string, int > > colDict_
std::shared_ptr< std::vector< std::string > > columns_
void l1t::TableRow::setRowTypes |
( |
const std::vector< std::string > & |
types | ) |
|
Definition at line 200 of file Setting.cc.
References types_.
203 types_ = std::shared_ptr< std::vector<std::string> >(
new std::vector<std::string>(types));
std::shared_ptr< std::vector< std::string > > types_
void l1t::TableRow::setTableId |
( |
const std::string & |
id | ) |
|
|
inline |
std::shared_ptr< std::map<std::string,int> > l1t::TableRow::colDict_ |
|
private |
std::shared_ptr< std::vector<std::string> > l1t::TableRow::columns_ |
|
private |
std::string* l1t::TableRow::logText_ |
|
private |
std::shared_ptr< std::vector<std::string> > l1t::TableRow::row_ |
|
private |
std::string l1t::TableRow::tableId_ |
|
private |
std::shared_ptr< std::vector<std::string> > l1t::TableRow::types_ |
|
private |