Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:15:01

0001 #ifndef FECONFIGBADStripINFO_H
0002 #define FECONFIGBADStripINFO_H
0003 
0004 #include <map>
0005 #include <string>
0006 
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 
0009 class FEConfigBadStripInfo : public IODConfig {
0010 public:
0011   friend class EcalCondDBInterface;
0012   FEConfigBadStripInfo();
0013   ~FEConfigBadStripInfo() override;
0014 
0015   // User data methods
0016   inline std::string getTable() override { return "FE_CONFIG_BadST_INFO"; }
0017 
0018   inline void setId(int id) { m_ID = id; }
0019   inline int getId() const { return m_ID; }
0020 
0021   // the tag is already in IODConfig
0022 
0023   inline void setVersion(int id) { m_version = id; }
0024   inline int getVersion() const { return m_version; }
0025   int fetchID() noexcept(false);
0026 
0027   int fetchNextId() noexcept(false);
0028   void setParameters(const std::map<std::string, std::string>& my_keys_map);
0029 
0030 private:
0031   void prepareWrite() noexcept(false) override;
0032 
0033   void writeDB() noexcept(false);
0034 
0035   void clear();
0036 
0037   void fetchData(FEConfigBadStripInfo* result) noexcept(false);
0038 
0039   // User data
0040   int m_ID;
0041   int m_version;
0042 };
0043 
0044 #endif