CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondCore/PopCon/interface/VerifyState.h

Go to the documentation of this file.
00001 #ifndef POPCON_VerifyState_H
00002 #define POPCON_VerifyState_H
00003 //
00004 // Author: Vincenzo Innocente
00005 //
00006 
00007 #include "CondCore/DBCommon/interface/Time.h"
00008 #include "CondCore/DBOutputService/interface/TagInfo.h"
00009 #include "CondCore/DBOutputService/interface/LogDBEntry.h"
00010 
00011 #include<string>
00012 
00013 namespace popcon {
00014 
00017   class VerifyState {
00018   public:
00019     VerifyState(cond::TagInfo const & tagInfo, 
00020                 cond::LogDBEntry const & logDBEntry) :
00021       m_tagInfo(tagInfo),
00022       m_logDBEntry(logDBEntry){}
00023     
00024     // verify that the last entry in the tag correspond to last entry in the log
00025     bool selfConsistent() const;
00026 
00027     // verify that last log entry is from this sourceId
00028     bool consistentWith(std::string & sourceId) const;
00029 
00030     
00031     
00032 
00033   private:
00034     
00035     cond::TagInfo const & m_tagInfo;
00036     
00037     cond::LogDBEntry const & m_logDBEntry;
00038     
00039 
00040   };
00041 
00042 }
00043 #endif // POPCON_VerifyState_H