ATLAS Offline Software
IRDBRecordset.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef RDBACCESSSVC_IRDBRECORDSET_H
16 #define RDBACCESSSVC_IRDBRECORDSET_H
17 
18 #include <string>
19 #include <vector>
20 #include <memory>
21 
23 using IRDBRecord_ptr = std::unique_ptr<IRDBRecord>;
24 using RecordsVector = std::vector<IRDBRecord_ptr>;
25 
35 {
36  public:
37  virtual ~IRDBRecordset() = default;
38 
40  virtual unsigned int size() const = 0;
41 
43  virtual std::string nodeName() const = 0;
44 
46  virtual std::string tagName() const = 0;
47 
50  virtual const IRDBRecord* operator[](unsigned int index) const= 0;
51 
52  typedef RecordsVector::const_iterator const_iterator;
53 
55  virtual const_iterator begin() const=0;
56 
58  virtual const_iterator end() const=0;
59 
60 };
61 
62 #endif
index
Definition: index.py:1
IRDBRecordset::begin
virtual const_iterator begin() const =0
IRDBRecordset
IRDBRecordset is an abstract interface to the RDB Recordsets, which represent a snapshot of HVS-tagge...
Definition: IRDBRecordset.h:35
IRDBRecordset::size
virtual unsigned int size() const =0
IRDBRecordset::tagName
virtual std::string tagName() const =0
IRDBRecordset::~IRDBRecordset
virtual ~IRDBRecordset()=default
RecordsVector
std::vector< IRDBRecord_ptr > RecordsVector
Definition: IRDBRecordset.h:24
IRDBRecordset::nodeName
virtual std::string nodeName() const =0
IRDBRecordset::operator[]
virtual const IRDBRecord * operator[](unsigned int index) const =0
IRDBRecord.h
Definition of the abstract IRDBRecord interface.
IRDBRecordset::end
virtual const_iterator end() const =0
IRDBRecord
IRDBRecord is one record in the IRDBRecordset object.
Definition: IRDBRecord.h:27
IRDBRecord_ptr
std::unique_ptr< IRDBRecord > IRDBRecord_ptr
Definition: IRDBRecordset.h:23
IRDBRecordset::const_iterator
RecordsVector::const_iterator const_iterator
Definition: IRDBRecordset.h:52