ATLAS Offline Software
Loading...
Searching...
No Matches
BCM_RDO_ContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Pool converter for BCM_RDO_Container
6// Author: Dominique Tardif <Dominique.Tardif@cern.ch>
7
9
10#include "GaudiKernel/MsgStream.h"
11
13 MsgStream log(msgSvc(), "BCM_RDO_ContainerCnv");
14 if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In BCM_RDO_ContainerCnv::createPersistent" << endmsg;
15 BCM_RDO_Container_p0* persCont = m_Converter.createPersistent(transCont,log);
16 if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "Wrote persistent BCM RDO Container with " << persCont->size() << " entries" << endmsg;
17 return persCont;
18}
19
21 MsgStream log(msgSvc(), "BCM_RDO_ContainerCnv");
22 if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "In BCM_RDO_ContainerCnv::createTransient" << endmsg;
23 std::unique_ptr<BCM_RDO_Container_p0> persCont(poolReadObject<BCM_RDO_Container_p0>());
24 BCM_RDO_Container* transCont = m_Converter.createTransient(persCont.get(),log);
25 if (log.level()<=MSG::DEBUG) log << MSG::DEBUG << "Made transient BCM RDO Container with " << transCont->size() << " entries" << endmsg;
26 return transCont;
27}
#define endmsg
virtual BCM_RDO_Container_p0 * createPersistent(BCM_RDO_Container *transCont)
virtual BCM_RDO_Container * createTransient()
BCM_RDO_ContainerCnv_p0 m_Converter
size_type size() const noexcept
Returns the number of elements in the collection.