ATLAS Offline Software
Loading...
Searching...
No Matches
RingerRingsContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7// createPersistent
9 MsgStream mlog(msgSvc(), "RingerRingsContainerConverter");
10
11 mlog << MSG::DEBUG << "RingerRingsContainerCnv::createPersistent called" << endmsg;
12
13 RingerRingsContainer_PERS *p_RingerRingsCont = m_converter.createPersistent(transObj, mlog);
14
15 return p_RingerRingsCont;
16
17}
18
19// createTransient
21
22 MsgStream mlog(msgSvc(), "RingerRingsContainerConverter");
23
24 mlog << MSG::DEBUG << "RingerRingsContainerCnv::createTransient called" << endmsg;
25
26 static const pool::Guid p2_guid("30D29B68-6D41-429E-AC16-930ACF71280D");
27 static const pool::Guid tlp1_guid("B5587828-50D8-4DAA-97F3-5E41A7F3E3FE");
28
29 if( compareClassGuid( p2_guid ) ){
30 std::unique_ptr< RingerRingsContainer_p2 > col_vect( poolReadObject< RingerRingsContainer_p2 >() );
31 // std::cout << "Reading IMFC p2" << std::endl;
32 return m_converter.createTransient( col_vect.get(), mlog ) ;
33 } else if (compareClassGuid(tlp1_guid)) {
34 std::unique_ptr< RingerRingsContainer_tlp1 > col_vect( poolReadObject< RingerRingsContainer_tlp1 >() );
35 // std::cout << "Reading IMFC tlp1" << std::endl;
36 return m_converter_tlp1.createTransient( col_vect.get(), mlog );
37 } else { throw std::runtime_error("Unsupported persistent version of RingerRingsContainer"); }
38
39}//end of create transient method
#define endmsg
RingerRingsContainer_p2 RingerRingsContainer_PERS
RingerRingsContainerCnv_tlp1 m_converter_tlp1
virtual RingerRingsContainer_PERS * createPersistent(RingerRingsContainer *transObj)
virtual RingerRingsContainer * createTransient()
RingerRingsContainerCnv_p2 m_converter