EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDbRollbackDates.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairDbRollbackDates.h
1 #ifndef FAIRDBROLLBACKDATES_H
2 #define FAIRDBROLLBACKDATES_H
3 
4 #include <map>
5 #include <string>
6 
7 #ifndef ROOT_Rtypes
8 #if !defined(__CINT__) || defined(__MAKECINT__)
9 #include "Rtypes.h"
10 #endif
11 #endif
12 
13 class FairRegistry;
14 
16 {
17 
18  public:
19 
20  typedef std::map<std::string,std::string> name_map_t;
21 
22 // Constructors and destructors.
24  virtual ~FairDbRollbackDates();
25 
26 // State testing member functions
27 
28  const std::string& GetDate(const std::string& tableName) const;
29  const std::string& GetType(const std::string& tableName) const;
30  void Show() const;
31 
32 // State changing member functions
33 
34  void Clear() {fTableToDate.clear(); fTableToType.clear();}
35  void Set(FairRegistry& reg); //Modifies Registry
36 
37  private:
38 
39 // Data members
40 
45 
46  ClassDef(FairDbRollbackDates,0) // Rollback dates by table name.
47 
48 };
49 
50 
51 #endif // FAIRDBROLLBACKDATES_H