15#ifndef RDBACCESSSVC_RDBRECORD_H
16#define RDBACCESSSVC_RDBRECORD_H
18#include "CoralBase/AttributeList.h"
51 bool isFieldNull(std::string_view fieldName)
const override;
56 int getInt(std::string_view fieldName)
const override;
61 long getLong(std::string_view fieldName)
const override;
66 double getDouble(std::string_view fieldName)
const override;
71 float getFloat(std::string_view fieldName)
const override;
76 virtual const std::string&
getString(std::string_view string_view)
const override;
85 int getInt(std::string_view fieldName,
unsigned int index)
const override;
91 long getLong(std::string_view fieldName,
unsigned int index)
const override;
97 double getDouble(std::string_view fieldName,
unsigned int index)
const override;
103 float getFloat(std::string_view fieldName,
unsigned int index)
const override;
109 virtual const std::string&
getString(std::string_view fieldName,
unsigned int index)
const override;
122 RDBRecord(
const coral::AttributeList& attList,
const std::string& tableName);
136 const T&
getGeneric(std::string_view fieldName)
const;
137 FieldName2ListIndex::const_iterator
getItr(std::string_view fieldName)
const;
138 FieldName2ListIndex::const_iterator
getItr(std::string_view fieldName,
int)
const;
144 x.toOutputStream(os);
Definition of the abstract IRDBRecord interface.
std::ostream & operator<<(std::ostream &os, const RDBRecord &x)
Define macros for attributes used to control the static checker.
IRDBRecord is one record in the IRDBRecordset object.
RDBRecord is one record in the RDBRecordset object.
long getLong(std::string_view fieldName) const override
Get long field value.
bool operator!=(const RDBRecord &rhs) const
RDBRecord(const RDBRecord &)=delete
std::map< std::string, unsigned int, std::less<> > FieldName2ListIndex
RDBRecord & operator=(const RDBRecord &)=delete
int getInt(std::string_view fieldName) const override
Get int field value.
float getFloat(std::string_view fieldName) const override
Get float field value.
const T & getGeneric(std::string_view fieldName) const
std::ostream & toOutputStream(std::ostream &os) const
friend class RDBRecordset
RDBRecord()
Empty private constructor.
~RDBRecord() override
Destructor.
coral::AttributeList *m_values ATLAS_THREAD_SAFE
virtual const std::string & getString(std::string_view string_view) const override
Get string field value.
bool isFieldNull(std::string_view fieldName) const override
Check if the field value is NULL.
FieldName2ListIndex::const_iterator getItr(std::string_view fieldName) const
double getDouble(std::string_view fieldName) const override
Get double field value.
FieldName2ListIndex m_name2Index