![]() |
ATLAS Offline Software
|
RDBRecord is one record in the RDBRecordset object. More...
#include <RDBRecord.h>
Public Member Functions | |
| RDBRecord (const RDBRecord &)=delete | |
| RDBRecord & | operator= (const RDBRecord &)=delete |
| ~RDBRecord () override | |
| Destructor. | |
| bool | isFieldNull (std::string_view fieldName) const override |
| Check if the field value is NULL. | |
| int | getInt (std::string_view fieldName) const override |
| Get int field value. | |
| long | getLong (std::string_view fieldName) const override |
| Get long field value. | |
| double | getDouble (std::string_view fieldName) const override |
| Get double field value. | |
| float | getFloat (std::string_view fieldName) const override |
| Get float field value. | |
| virtual const std::string & | getString (std::string_view string_view) const override |
| Get string field value. | |
| int | getInt (std::string_view fieldName, unsigned int index) const override |
| Get array int field value. | |
| long | getLong (std::string_view fieldName, unsigned int index) const override |
| Get array long field value. | |
| double | getDouble (std::string_view fieldName, unsigned int index) const override |
| Get array double field value. | |
| float | getFloat (std::string_view fieldName, unsigned int index) const override |
| Get array float field value. | |
| virtual const std::string & | getString (std::string_view fieldName, unsigned int index) const override |
| Get array string field value. | |
| bool | operator!= (const RDBRecord &rhs) const |
| std::ostream & | toOutputStream (std::ostream &os) const |
Protected Member Functions | |
| RDBRecord (const coral::AttributeList &attList, const std::string &tableName) | |
| Constructor used by RDBRecordset class. | |
Private Types | |
| typedef std::map< std::string, unsigned int, std::less<> > | FieldName2ListIndex |
Private Member Functions | |
| RDBRecord () | |
| Empty private constructor. | |
| template<typename T> | |
| const T & | getGeneric (std::string_view fieldName) const |
| FieldName2ListIndex::const_iterator | getItr (std::string_view fieldName) const |
| FieldName2ListIndex::const_iterator | getItr (std::string_view fieldName, int) const |
Private Attributes | |
| FieldName2ListIndex | m_name2Index |
| coral::AttributeList *m_values | ATLAS_THREAD_SAFE |
| std::string | m_tableName |
Friends | |
| class | RDBRecordset |
RDBRecord is one record in the RDBRecordset object.
Definition at line 36 of file RDBRecord.h.
|
private |
Definition at line 125 of file RDBRecord.h.
|
override |
|
protected |
Constructor used by RDBRecordset class.
| attList | [IN] pointer to the attribute list, source of the Record object |
| cursor | [IN] need to check if the field values are NULL |
| tableName | [IN] data table name in the database |
Definition at line 26 of file RDBRecord.cxx.
|
inlineprivate |
|
overridevirtual |
Get double field value.
| fieldName | [IN] field name |
Implements IRDBRecord.
Definition at line 128 of file RDBRecord.cxx.
|
overridevirtual |
Get array double field value.
| fieldName | [IN] field name |
| index | [IN] index in the array |
Implements IRDBRecord.
Definition at line 175 of file RDBRecord.cxx.
|
overridevirtual |
Get float field value.
| fieldName | [IN] field name |
Implements IRDBRecord.
Definition at line 133 of file RDBRecord.cxx.
|
overridevirtual |
Get array float field value.
| fieldName | [IN] field name |
| index | [IN] index in the array |
Implements IRDBRecord.
Definition at line 188 of file RDBRecord.cxx.
|
private |
Definition at line 47 of file RDBRecord.cxx.
|
overridevirtual |
Get int field value.
| fieldName | [IN] field name |
Implements IRDBRecord.
Definition at line 93 of file RDBRecord.cxx.
|
overridevirtual |
Get array int field value.
| fieldName | [IN] field name |
| index | [IN] index in the array |
Implements IRDBRecord.
Definition at line 143 of file RDBRecord.cxx.
|
private |
Definition at line 64 of file RDBRecord.cxx.
|
private |
Definition at line 74 of file RDBRecord.cxx.
|
overridevirtual |
Get long field value.
| fieldName | [IN] field name |
Implements IRDBRecord.
Definition at line 109 of file RDBRecord.cxx.
|
overridevirtual |
Get array long field value.
| fieldName | [IN] field name |
| index | [IN] index in the array |
Implements IRDBRecord.
Definition at line 159 of file RDBRecord.cxx.
|
overridevirtual |
Get array string field value.
| fieldName | [IN] field name |
| index | [IN] index in the array |
Implements IRDBRecord.
Definition at line 201 of file RDBRecord.cxx.
|
overridevirtual |
Get string field value.
| fieldName | [IN] field name |
Implements IRDBRecord.
Definition at line 138 of file RDBRecord.cxx.
|
overridevirtual |
Check if the field value is NULL.
| fieldName | [IN] field name @retun TRUE if the field is NULL, FALSE otherwise |
Implements IRDBRecord.
Definition at line 85 of file RDBRecord.cxx.
Definition at line 214 of file RDBRecord.cxx.
| std::ostream & RDBRecord::toOutputStream | ( | std::ostream & | os | ) | const |
Definition at line 241 of file RDBRecord.cxx.
|
friend |
Definition at line 38 of file RDBRecord.h.
|
private |
Definition at line 131 of file RDBRecord.h.
|
private |
Definition at line 130 of file RDBRecord.h.
|
private |
Definition at line 133 of file RDBRecord.h.