CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/OnlineDB/EcalCondDB/interface/IUniqueDBObject.h

Go to the documentation of this file.
00001 #ifndef IUNIQUEDBOBJECT_H
00002 #define IUNIQUEDBOBJECT_H
00003 
00004 #include <stdexcept>
00005 
00006 #include "OnlineDB/EcalCondDB/interface/IDBObject.h"
00007 
00011 class IUniqueDBObject : public IDBObject {
00012  public:
00013   virtual int fetchID() throw(std::runtime_error) =0;
00014   virtual void setByID(int id) throw(std::runtime_error) =0;
00015 
00016  protected:
00017   // ID from the database
00018   int m_ID;
00019 };
00020 
00021 #endif