CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/OnlineDB/EcalCondDB/interface/ODVfeToRejectInfo.h

Go to the documentation of this file.
00001 #ifndef ODVfeToRejectINFO_H
00002 #define ODVfeToRejectINFO_H
00003 
00004 #include <map>
00005 #include <string>
00006 
00007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
00008 
00009 class ODVfeToRejectInfo : public IODConfig {
00010  public:
00011   friend class EcalCondDBInterface;
00012   ODVfeToRejectInfo();
00013   ~ODVfeToRejectInfo();
00014 
00015   // User data methods
00016   inline std::string getTable() { return "VFES_to_reject_INFO"; }
00017 
00018   inline void setId(int id) { m_ID = id; }
00019   inline int getId() const { return m_ID; }
00020 
00021   // the tag is already in IODConfig 
00022 
00023   inline void setVersion(int id) { m_version = id; }
00024   inline int getVersion() const { return m_version; }
00025   int fetchID()  throw(std::runtime_error);
00026 
00027   int fetchNextId() throw(std::runtime_error);
00028   void setParameters(std::map<std::string,std::string> my_keys_map);
00029   
00030  private:
00031   void prepareWrite()  throw(std::runtime_error);
00032 
00033   void writeDB()       throw(std::runtime_error);
00034 
00035   void clear();
00036 
00037   void fetchData(ODVfeToRejectInfo * result)     throw(std::runtime_error);
00038 
00039 
00040 
00041   // User data
00042   int m_ID;
00043   int m_version;
00044   
00045 };
00046 
00047 #endif