Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:47

0001 #ifndef Utilities_CondDBImport_h
0002 #define Utilities_CondDBImport_h
0003 
0004 #include "CondCore/CondDB/interface/Types.h"
0005 #include "CondCore/CondDB/interface/Session.h"
0006 #include <memory>
0007 //
0008 
0009 namespace cond {
0010 
0011   namespace persistency {
0012 
0013     cond::Hash import(Session& source,
0014                       const cond::Hash& sourcePayloadId,
0015                       const std::string& inputTypeName,
0016                       const void* inputPtr,
0017                       Session& destination);
0018 
0019     std::pair<std::string, std::shared_ptr<void> > fetch(const cond::Hash& payloadId, Session& session);
0020     std::pair<std::string, std::shared_ptr<void> > fetchOne(const std::string& payloadTypeName,
0021                                                             const cond::Binary& data,
0022                                                             const cond::Binary& streamerInfo,
0023                                                             std::shared_ptr<void> payloadPtr);
0024 
0025   }  // namespace persistency
0026 
0027 }  // namespace cond
0028 
0029 #endif