CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VerifyState.h
Go to the documentation of this file.
1 #ifndef POPCON_VerifyState_H
2 #define POPCON_VerifyState_H
3 //
4 // Author: Vincenzo Innocente
5 //
6 
8 #include "CondCore/DBOutputService/interface/TagInfo.h"
9 #include "CondCore/DBOutputService/interface/LogDBEntry.h"
10 
11 #include<string>
12 
13 namespace popcon {
14 
17  class VerifyState {
18  public:
19  VerifyState(cond::TagInfo const & tagInfo,
20  cond::LogDBEntry const & logDBEntry) :
21  m_tagInfo(tagInfo),
22  m_logDBEntry(logDBEntry){}
23 
24  // verify that the last entry in the tag correspond to last entry in the log
25  bool selfConsistent() const;
26 
27  // verify that last log entry is from this sourceId
28  bool consistentWith(std::string & sourceId) const;
29 
30 
31 
32 
33  private:
34 
36 
38 
39 
40  };
41 
42 }
43 #endif // POPCON_VerifyState_H
cond::TagInfo const & m_tagInfo
Definition: VerifyState.h:35
bool consistentWith(std::string &sourceId) const
VerifyState(cond::TagInfo const &tagInfo, cond::LogDBEntry const &logDBEntry)
Definition: VerifyState.h:19
cond::LogDBEntry const & m_logDBEntry
Definition: VerifyState.h:37
bool selfConsistent() const