ATLAS Offline Software
Loading...
Searching...
No Matches
SqliteRecordset.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef RDBACCESSSVC_SQLITERECORDSET_H
13#define RDBACCESSSVC_SQLITERECORDSET_H
14
17#include "SqliteRecord.h"
18#include <string>
19
20class sqlite3;
21
29
30class SqliteRecordset final : public IRDBRecordset, public AthMessaging
31{
32 public:
35
38 void getData(sqlite3* db, const std::string& nodeName);
39
41 unsigned int size() const override;
42
44 std::string nodeName() const override;
45
47 std::string tagName() const override {return std::string();}
48
51 const IRDBRecord* operator[](unsigned int index) const override;
52
54 IRDBRecordset::const_iterator begin() const override;
55
57 IRDBRecordset::const_iterator end() const override;
58
59 private:
60 std::string m_nodeName{};
63};
64
65#endif
Definition of the abstract IRDBRecordset interface.
std::vector< IRDBRecord_ptr > RecordsVector
Declaration of the SqliteRecord class.
std::shared_ptr< SqliteInpDef > SqliteInpDef_ptr
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
IRDBRecord is one record in the IRDBRecordset object.
Definition IRDBRecord.h:27
IRDBRecordset is an abstract interface to the RDB Recordsets, which represent a snapshot of HVS-tagge...
RecordsVector::const_iterator const_iterator
unsigned int size() const override
std::string tagName() const override
RecordsVector m_records
const IRDBRecord * operator[](unsigned int index) const override
IRDBRecordset::const_iterator begin() const override
void getData(sqlite3 *db, const std::string &nodeName)
Constructs SQL query and retrieves data from the DB.
SqliteInpDef_ptr m_def
IRDBRecordset::const_iterator end() const override
SqliteRecordset()
Construct empty recordset.
std::string nodeName() const override
std::string m_nodeName
Definition index.py:1