TDbiRollbackDates.hxx
Go to the documentation of this file.00001 #ifndef DBIROLLBACKDATES_H
00002 #define DBIROLLBACKDATES_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <map>
00024 #include <string>
00025
00026 #ifndef ROOT_Rtypes
00027 #if !defined(__CINT__) || defined(__MAKECINT__)
00028 #include "Rtypes.h"
00029 #endif
00030 #endif
00031
00032 class TDbiRegistry;
00033
00034 class TDbiRollbackDates
00035 {
00036
00037 public:
00038
00039 typedef std::map<std::string,std::string> name_map_t;
00040
00041
00042 TDbiRollbackDates();
00043 virtual ~TDbiRollbackDates();
00044
00045
00046
00047 const std::string& GetDate(const std::string& tableName) const;
00048 const std::string& GetType(const std::string& tableName) const;
00049 void Show() const;
00050
00051
00052
00053 void Clear() {fTableToDate.clear(); fTableToType.clear();}
00054 void Set(TDbiRegistry& reg);
00055
00056 private:
00057
00058
00059
00060
00061 name_map_t fTableToDate;
00062
00063 name_map_t fTableToType;
00064
00065 ClassDef(TDbiRollbackDates,0)
00066
00067 };
00068
00069
00070
00071 #endif // DBIROLLBACKDATES_H
00072