ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
IRDBQuery Class Referenceabstract

#include <IRDBQuery.h>

Inheritance diagram for IRDBQuery:
Collaboration diagram for IRDBQuery:

Public Member Functions

 IRDBQuery ()=default
 
virtual ~IRDBQuery ()=default
 
virtual void execute ()=0
 
virtual long size ()=0
 
virtual void finalize ()=0
 
virtual void setOrder (const std::string &)=0
 
virtual void addToOutput (const std::string &)=0
 
virtual bool next ()=0
 
template<typename T >
const T & data (const std::string &)
 
template<typename T >
const T & data (unsigned int)
 
bool isNull (const std::string &)
 
bool isNull (unsigned int)
 

Protected Attributes

const coral::AttributeList * m_attrList {nullptr}
 

Detailed Description

Definition at line 12 of file IRDBQuery.h.

Constructor & Destructor Documentation

◆ IRDBQuery()

IRDBQuery::IRDBQuery ( )
default

◆ ~IRDBQuery()

virtual IRDBQuery::~IRDBQuery ( )
virtualdefault

Member Function Documentation

◆ addToOutput()

virtual void IRDBQuery::addToOutput ( const std::string &  )
pure virtual

Implemented in RDBQuery.

◆ data() [1/2]

template<typename T >
const T & IRDBQuery::data ( const std::string &  field)

Definition at line 35 of file IRDBQuery.h.

36 {
37  return (*m_attrList)[field].data<T>();
38 }

◆ data() [2/2]

template<typename T >
const T & IRDBQuery::data ( unsigned int  fieldInd)

Definition at line 40 of file IRDBQuery.h.

41 {
42  return (*m_attrList)[fieldInd].data<T>();
43 }

◆ execute()

virtual void IRDBQuery::execute ( )
pure virtual

Implemented in RDBQuery.

◆ finalize()

virtual void IRDBQuery::finalize ( )
pure virtual

Implemented in RDBQuery.

◆ isNull() [1/2]

bool IRDBQuery::isNull ( const std::string &  field)
inline

Definition at line 45 of file IRDBQuery.h.

46 {
47  return (*m_attrList)[field].isNull();
48 }

◆ isNull() [2/2]

bool IRDBQuery::isNull ( unsigned int  fieldInd)
inline

Definition at line 50 of file IRDBQuery.h.

51 {
52  return (*m_attrList)[fieldInd].isNull();
53 }

◆ next()

virtual bool IRDBQuery::next ( )
pure virtual

Implemented in RDBQuery.

◆ setOrder()

virtual void IRDBQuery::setOrder ( const std::string &  )
pure virtual

Implemented in RDBQuery.

◆ size()

virtual long IRDBQuery::size ( )
pure virtual

Implemented in RDBQuery.

Member Data Documentation

◆ m_attrList

const coral::AttributeList* IRDBQuery::m_attrList {nullptr}
protected

Definition at line 32 of file IRDBQuery.h.


The documentation for this class was generated from the following file:
IRDBQuery::m_attrList
const coral::AttributeList * m_attrList
Definition: IRDBQuery.h:32
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35