EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDbValRecSet.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairDbValRecSet.h
1 #ifndef FAIRDBVALRECSET
2 #define FAIRDBVALRECSET
3 
4 
5 #include <map>
6 #include <string>
7 
8 class FairDbResult;
10 
12 {
13 
14  public:
15 
16 // Constructors and destructors.
17  FairDbValRecSet(const string& tableName,UInt_t dbNo,UInt_t seqNo=0);
18  virtual ~FairDbValRecSet();
19 
20 // State testing member functions
21  UInt_t GetDbNo() const { return fDbNo; }
22  UInt_t GetNumRows() const;
23  const string GetTableName() const;
24  const FairDbValidityRec* GetTableRow(UInt_t rowNum) const;
25  const FairDbValidityRec* GetTableRowBySeqNo(UInt_t seqNo) const;
26 
27 // State changing member functions
28 
29  private:
30 
31 // Data members
32 
34  UInt_t fDbNo;
35 
38 
41  mutable map<UInt_t,const FairDbValidityRec*>fSeqNoToRec;
42 
45 
46  ClassDef(FairDbValRecSet,0) // A set of FairDbValidityRecs
47 
48 };
49 
50 
51 #endif // FAIRDBVALRECSET