TDbiEpochRollback.hxx
Go to the documentation of this file.00001 #ifndef DBIEPOCHROLLBACK_H
00002 #define DBIEPOCHROLLBACK_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 TDbiEpochRollback
00035 {
00036
00037 public:
00038
00039 typedef std::map<std::string,UInt_t> name_map_t;
00040
00041
00042 TDbiEpochRollback();
00043 virtual ~TDbiEpochRollback();
00044
00045
00046
00047 const std::string& GetEpochCondition(const std::string& tableName) const;
00048 void Show() const;
00049
00050
00051
00052 void Clear() {fTableToEpoch.clear();}
00053 void Set(TDbiRegistry& reg);
00054
00055 private:
00056
00057
00058
00059
00060 name_map_t fTableToEpoch;
00061
00062 ClassDef(TDbiEpochRollback,0)
00063
00064 };
00065
00066
00067
00068 #endif // DBIEPOCHROLLBACK_H
00069