00001 #ifndef DBIROLLBACKDATES_H
00002 #define DBIROLLBACKDATES_H
00003
00024 #include <map>
00025 #include <string>
00026
00027 #ifndef ROOT_Rtypes
00028 #if !defined(__CINT__) || defined(__MAKECINT__)
00029 #include "Rtypes.h"
00030 #endif
00031 #endif
00032
00033 class Registry;
00034
00035 class DbiRollbackDates
00036 {
00037
00038 public:
00039
00040 typedef std::map<std::string,std::string> name_map_t;
00041
00042
00043 DbiRollbackDates();
00044 virtual ~DbiRollbackDates();
00045
00046
00047
00048 const std::string& GetDate(const std::string& tableName) const;
00049 const std::string& GetType(const std::string& tableName) const;
00050 void Show() const;
00051
00052
00053
00054 void Clear() {fTableToDate.clear(); fTableToType.clear();}
00055 void Set(Registry& reg);
00056
00057 private:
00058
00059
00060
00062 name_map_t fTableToDate;
00064 name_map_t fTableToType;
00065
00066 ClassDef(DbiRollbackDates,0)
00067
00068 };
00069
00070
00071 #endif // DBIROLLBACKDATES_H