Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:54

0001 #ifndef IUNIQUEDBOBJECT_H
0002 #define IUNIQUEDBOBJECT_H
0003 
0004 #include <stdexcept>
0005 
0006 #include "OnlineDB/EcalCondDB/interface/IDBObject.h"
0007 
0008 /**
0009  *   Abstract base class for an object with a single unique ID
0010  */
0011 class IUniqueDBObject : public IDBObject {
0012 public:
0013   virtual int fetchID() noexcept(false) = 0;
0014   virtual void setByID(int id) noexcept(false) = 0;
0015 
0016 protected:
0017   // ID from the database
0018   int m_ID;
0019 };
0020 
0021 #endif