Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "CondCore/CondDB/interface/PayloadProxy.h"
0002 
0003 namespace cond {
0004 
0005   namespace persistency {
0006 
0007     BasePayloadProxy::BasePayloadProxy(Iov_t const* mostRecentCurrentIov,
0008                                        Session const* mostRecentSession,
0009                                        std::shared_ptr<std::vector<Iov_t>> const* mostRecentRequests)
0010         : m_mostRecentCurrentIov(mostRecentCurrentIov),
0011           m_mostRecentSession(mostRecentSession),
0012           m_mostRecentRequests(mostRecentRequests) {}
0013 
0014     BasePayloadProxy::~BasePayloadProxy() {}
0015 
0016     bool BasePayloadProxy::isValid() const { return m_iovAtInitialization.isValid(); }
0017 
0018     void BasePayloadProxy::initializeForNewIOV() {
0019       m_iovAtInitialization = *m_mostRecentCurrentIov;
0020       m_session = *m_mostRecentSession;
0021       m_requests = *m_mostRecentRequests;
0022     }
0023 
0024   }  // namespace persistency
0025 }  // namespace cond