ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_BSErrContainerCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
10
12
13#include <iostream>
14
15
18 MsgStream log(msgSvc(), "TRT_BSErrContainerCnv" );
19 TRT_BSErrContainer_PERS *persObj = m_TPConverter.createPersistent( transCont, log );
20 return persObj;
21}
22
25 MsgStream log(msgSvc(), "TRT_BSErrContainerCnv" );
26 static const pool::Guid p1_guid("D461AC01-02CA-4A9E-886B-24EC14309121");
27 static const pool::Guid p2_guid("A815E78C-BB68-4CA5-9B95-739E9B47043A");
28
29 if( compareClassGuid(p2_guid) ) {
30 // using unique_ptr ensures deletion of the persistent object
31 std::unique_ptr< TRT_BSErrContainer_p2 > col_vect( poolReadObject< TRT_BSErrContainer_p2 >() );
32 return m_TPConverter.createTransient( col_vect.get(), log );
33 }
34
35 if( compareClassGuid(p1_guid) ) {
36 log << MSG::ERROR << "TRT_BSErrContainer_p1 not supported any more. Recording empty container." << endmsg;
37 return new TRT_BSErrContainer();
38 }
39
40 throw std::runtime_error("Unsupported persistent version of Data Collection");
41}
#define endmsg
Athena::TPCnvVers::Old TRT_BSErrContainer
Generated header file which defines a typedef for templated converter class.
TRT_BSErrContainer_p2 TRT_BSErrContainer_PERS
virtual TRT_BSErrContainer_PERS * createPersistent(TRT_BSErrContainer *transCont)
TRT_BSErrContainerCnv_p2 m_TPConverter
virtual TRT_BSErrContainer * createTransient()