ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
RDBAccessSvc
RDBAccessSvc
IRDBRecord.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
14
15
#ifndef RDBACCESSSVC_IRDBRECORD_H
16
#define RDBACCESSSVC_IRDBRECORD_H
17
18
#include <string_view>
19
#include <string>
20
26
27
class
IRDBRecord
28
{
29
public
:
30
virtual
~IRDBRecord
() =
default
;
31
35
virtual
bool
isFieldNull
(std::string_view fieldName)
const
= 0;
36
40
virtual
int
getInt
(std::string_view fieldName)
const
= 0;
41
45
virtual
long
getLong
(std::string_view fieldName)
const
= 0;
46
50
virtual
double
getDouble
(std::string_view fieldName)
const
= 0;
51
55
virtual
float
getFloat
(std::string_view fieldName)
const
= 0;
56
60
virtual
const
std::string&
getString
(std::string_view fieldName)
const
= 0;
61
62
63
// Access array values by index
64
// arrays are implemented using the field with names like NAME_0, NAME_1 etc.
65
70
virtual
int
getInt
(std::string_view fieldName,
unsigned
int
index
)
const
= 0;
71
76
virtual
long
getLong
(std::string_view fieldName,
unsigned
int
index
)
const
= 0;
77
82
virtual
double
getDouble
(std::string_view fieldName,
unsigned
int
index
)
const
= 0;
83
88
virtual
float
getFloat
(std::string_view fieldName,
unsigned
int
index
)
const
= 0;
89
94
virtual
const
std::string&
getString
(std::string_view fieldName,
unsigned
int
index
)
const
= 0;
95
96
};
97
98
#endif
99
IRDBRecord
IRDBRecord is one record in the IRDBRecordset object.
Definition
IRDBRecord.h:28
IRDBRecord::getDouble
virtual double getDouble(std::string_view fieldName) const =0
Get double field value.
IRDBRecord::getFloat
virtual float getFloat(std::string_view fieldName, unsigned int index) const =0
Get array float field value.
IRDBRecord::getFloat
virtual float getFloat(std::string_view fieldName) const =0
Get float field value.
IRDBRecord::isFieldNull
virtual bool isFieldNull(std::string_view fieldName) const =0
Check if the field value is NULL.
IRDBRecord::~IRDBRecord
virtual ~IRDBRecord()=default
IRDBRecord::getLong
virtual long getLong(std::string_view fieldName) const =0
Get long field value.
IRDBRecord::getInt
virtual int getInt(std::string_view fieldName) const =0
Get int field value.
IRDBRecord::getLong
virtual long getLong(std::string_view fieldName, unsigned int index) const =0
Get array long field value.
IRDBRecord::getString
virtual const std::string & getString(std::string_view fieldName, unsigned int index) const =0
Get array string field value.
IRDBRecord::getInt
virtual int getInt(std::string_view fieldName, unsigned int index) const =0
Get array int field value.
IRDBRecord::getDouble
virtual double getDouble(std::string_view fieldName, unsigned int index) const =0
Get array double field value.
IRDBRecord::getString
virtual const std::string & getString(std::string_view fieldName) const =0
Get string field value.
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0