ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
RDBParamRecords Class Reference

#include <RDBParamRecords.h>

Collaboration diagram for RDBParamRecords:

Public Types

typedef RDBParamRecords self_t
 

Public Member Functions

 RDBParamRecords (RDBParamReader *rdbParAcc, IRDBRecordset_ptr initRecSet)
 
 RDBParamRecords (const RDBParamRecords &other)
 
RDBParamRecordsoperator= (const RDBParamRecords &other)=delete
 
 ~RDBParamRecords ()
 
self_tfallback_to (const std::string &node, const std::string &tag, const std::string &tag2node="")
 
const self_tparam (unsigned int &outval, const std::string &name, unsigned int index=0) const
 
const self_tparam (int &outval, const std::string &name, unsigned int index=0) const
 
const self_tparam (double &outval, const std::string &name, const double units=1.0, unsigned int index=0) const
 
const self_tparam (std::string &outval, const std::string &name, unsigned int index=0) const
 

Private Attributes

RDBParamReaderm_rdbParAcc
 
IRDBRecordset_ptr m_RecSet
 

Detailed Description

Helper class to simplify parameter reading Fully independent from other parts of package

Definition at line 15 of file RDBParamRecords.h.

Member Typedef Documentation

◆ self_t

Definition at line 19 of file RDBParamRecords.h.

Constructor & Destructor Documentation

◆ RDBParamRecords() [1/2]

RDBParamRecords::RDBParamRecords ( RDBParamReader rdbParAcc,
IRDBRecordset_ptr  initRecSet 
)

Definition at line 14 of file RDBParamRecords.cxx.

15  : m_rdbParAcc(rdbParAcc),
16  m_RecSet(initRecSet)
17 {
18 }

◆ RDBParamRecords() [2/2]

RDBParamRecords::RDBParamRecords ( const RDBParamRecords other)

Definition at line 20 of file RDBParamRecords.cxx.

21  : m_rdbParAcc (other.m_rdbParAcc),
22  m_RecSet (other.m_RecSet)
23 {
24 }

◆ ~RDBParamRecords()

RDBParamRecords::~RDBParamRecords ( )

Definition at line 27 of file RDBParamRecords.cxx.

28 {
29 }

Member Function Documentation

◆ fallback_to()

RDBParamRecords::self_t & RDBParamRecords::fallback_to ( const std::string &  node,
const std::string &  tag,
const std::string &  tag2node = "" 
)

Definition at line 31 of file RDBParamRecords.cxx.

34 {
35  if(m_RecSet->size() == 0) {
37  }
38  return *this;
39 }

◆ operator=()

RDBParamRecords& RDBParamRecords::operator= ( const RDBParamRecords other)
delete

◆ param() [1/4]

const RDBParamRecords::self_t & RDBParamRecords::param ( double &  outval,
const std::string &  name,
const double  units = 1.0,
unsigned int  index = 0 
) const

Definition at line 57 of file RDBParamRecords.cxx.

61 {
62  outval = (*m_RecSet)[index]->getDouble(name)*units;
63  return *this;
64 }

◆ param() [2/4]

const RDBParamRecords::self_t & RDBParamRecords::param ( int &  outval,
const std::string &  name,
unsigned int  index = 0 
) const

Definition at line 41 of file RDBParamRecords.cxx.

44 {
45  outval = (*m_RecSet)[index]->getInt(name);
46  return *this;
47 }

◆ param() [3/4]

const RDBParamRecords::self_t & RDBParamRecords::param ( std::string &  outval,
const std::string &  name,
unsigned int  index = 0 
) const

Definition at line 66 of file RDBParamRecords.cxx.

69 {
70  outval = (*m_RecSet)[index]->getString(name);
71  return *this;
72 }

◆ param() [4/4]

const RDBParamRecords::self_t & RDBParamRecords::param ( unsigned int &  outval,
const std::string &  name,
unsigned int  index = 0 
) const

Definition at line 49 of file RDBParamRecords.cxx.

52 {
53  outval = (unsigned int)(*m_RecSet)[index]->getInt(name);
54  return *this;
55 }

Member Data Documentation

◆ m_rdbParAcc

RDBParamReader* RDBParamRecords::m_rdbParAcc
private

Definition at line 32 of file RDBParamRecords.h.

◆ m_RecSet

IRDBRecordset_ptr RDBParamRecords::m_RecSet
private

Definition at line 33 of file RDBParamRecords.h.


The documentation for this class was generated from the following files:
RDBParamReader::_getRecordsetPtr
IRDBRecordset_ptr _getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="")
Definition: RDBParamReader.cxx:30
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
RDBParamRecords::m_RecSet
IRDBRecordset_ptr m_RecSet
Definition: RDBParamRecords.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
perfmonmt-refit.units
string units
Definition: perfmonmt-refit.py:77
DeMoScan.index
string index
Definition: DeMoScan.py:364
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
RDBParamRecords::m_rdbParAcc
RDBParamReader * m_rdbParAcc
Definition: RDBParamRecords.h:32
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
node
Definition: memory_hooks-stdcmalloc.h:74