Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DbiRollbackDates.h

Go to the documentation of this file.
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 // Constructors and destructors.
00043            DbiRollbackDates();
00044   virtual ~DbiRollbackDates();
00045 
00046 // State testing member functions
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 // State changing member functions
00053 
00054   void Clear() {fTableToDate.clear(); fTableToType.clear();}
00055   void Set(Registry& reg);  //Modifies Registry
00056 
00057 private:  
00058 
00059 // Data members
00060 
00062   name_map_t fTableToDate;    
00064   name_map_t fTableToType;    
00065 
00066 ClassDef(DbiRollbackDates,0)   // Rollback dates by table name.
00067 
00068 };
00069 
00070 
00071 #endif  // DBIROLLBACKDATES_H

Generated on Mon Feb 15 11:06:34 2010 for loon by  doxygen 1.3.9.1