CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CondDBTools.h
Go to the documentation of this file.
1 #ifndef Utilities_CondDBTools_h
2 #define Utilities_CondDBTools_h
3 
5 //
6 #include <string>
7 
8 namespace cond {
9 
10  namespace persistency {
11 
12  class Session;
13 
14  typedef enum { NEW=0, UPDATE, REPLACE } UpdatePolicy;
15 
16  size_t copyTag( const std::string& sourceTag,
17  Session& sourceSession,
18  const std::string& destTag,
19  Session& destSession,
20  UpdatePolicy policy,
21  bool log,
22  bool forValidation );
23 
24  size_t importIovs( const std::string& sourceTag,
25  Session& sourceSession,
26  const std::string& destTag,
27  Session& destSession,
30  bool log );
31 
32  bool copyIov( Session& session,
33  const std::string& sourceTag,
34  const std::string& destTag,
35  cond::Time_t souceSince,
36  cond::Time_t destSince,
37  bool log );
38 
39  bool compareTags( const std::string& firstTag,
40  Session& firstSession,
41  const std::string& firstFileName,
42  const std::string& secondTag,
43  Session& secondSession,
44  const std::string& secondFileName );
45 
46  bool validateTag( const std::string& refTag, Session& refSession, const std::string& candTag, Session& candSession );
47 
48  }
49 
50 }
51 
52 #endif
static std::vector< std::string > checklist log
unsigned long long Time_t
Definition: Time.h:16
size_t copyTag(const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, UpdatePolicy policy, bool log, bool forValidation)
Definition: CondDBTools.cc:11
#define end
Definition: vmac.h:37
bool copyIov(Session &session, const std::string &sourceTag, const std::string &destTag, cond::Time_t souceSince, cond::Time_t destSince, bool log)
Definition: CondDBTools.cc:152
bool validateTag(const std::string &refTag, Session &refSession, const std::string &candTag, Session &candSession)
Definition: CondDBTools.cc:262
#define begin
Definition: vmac.h:30
bool compareTags(const std::string &firstTag, Session &firstSession, const std::string &firstFileName, const std::string &secondTag, Session &secondSession, const std::string &secondFileName)
Definition: CondDBTools.cc:202
size_t importIovs(const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, cond::Time_t begin, cond::Time_t end, bool log)
Definition: CondDBTools.cc:81