ATLAS Offline Software
Loading...
Searching...
No Matches
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
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 is one record in the IRDBRecordset object.
Definition IRDBRecord.h:28
virtual double getDouble(std::string_view fieldName) const =0
Get double field value.
virtual float getFloat(std::string_view fieldName, unsigned int index) const =0
Get array float field value.
virtual float getFloat(std::string_view fieldName) const =0
Get float field value.
virtual bool isFieldNull(std::string_view fieldName) const =0
Check if the field value is NULL.
virtual ~IRDBRecord()=default
virtual long getLong(std::string_view fieldName) const =0
Get long field value.
virtual int getInt(std::string_view fieldName) const =0
Get int field value.
virtual long getLong(std::string_view fieldName, unsigned int index) const =0
Get array long field value.
virtual const std::string & getString(std::string_view fieldName, unsigned int index) const =0
Get array string field value.
virtual int getInt(std::string_view fieldName, unsigned int index) const =0
Get array int field value.
virtual double getDouble(std::string_view fieldName, unsigned int index) const =0
Get array double field value.
virtual const std::string & getString(std::string_view fieldName) const =0
Get string field value.
Definition index.py:1