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 
6 //
7 #include <string>
8 
9 namespace cond {
10 
11  namespace persistency {
12 
13  class Session;
14 
15  typedef enum { NEW=0, UPDATE, REPLACE } UpdatePolicy;
16 
17  size_t copyTag( const std::string& sourceTag,
18  Session& sourceSession,
19  const std::string& destTag,
20  Session& destSession,
21  UpdatePolicy policy,
22  bool log,
23  bool forValidation );
24 
25  size_t migrateTag( const std::string& sourceTag,
26  Session& sourceSession,
27  const std::string& destTag,
28  Session& destSession,
29  UpdatePolicy policy,
30  cond::DbSession& logDbSession);
31 
32  size_t importIovs( const std::string& sourceTag,
33  Session& sourceSession,
34  const std::string& destTag,
35  Session& destSession,
38  const std::string& description,
39  bool log );
40 
41  bool copyIov( Session& session,
42  const std::string& sourceTag,
43  const std::string& destTag,
44  cond::Time_t souceSince,
45  cond::Time_t destSince,
46  const std::string& description,
47  bool log );
48 
49  bool compareTags( const std::string& firstTag,
50  Session& firstSession,
51  const std::string& firstFileName,
52  const std::string& secondTag,
53  Session& secondSession,
54  const std::string& secondFileName );
55 
56  bool validateTag( const std::string& refTag, Session& refSession, const std::string& candTag, Session& candSession );
57 
58  }
59 
60 }
61 
62 #endif
size_t importIovs(const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, cond::Time_t begin, cond::Time_t end, const std::string &description, bool log)
Definition: CondDBTools.cc:256
size_t migrateTag(const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, UpdatePolicy policy, cond::DbSession &logDbSession)
Definition: CondDBTools.cc:168
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:29
#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, const std::string &description, bool log)
Definition: CondDBTools.cc:334
tuple description
Definition: idDealer.py:66
bool validateTag(const std::string &refTag, Session &refSession, const std::string &candTag, Session &candSession)
Definition: CondDBTools.cc:446
#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:386