ATLAS Offline Software
Loading...
Searching...
No Matches
TrigPassFlagsCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "TrigPassFlagsCnv.h"
7
8
10
11//createPersistent
13 MsgStream mlog(msgSvc(), "TrigPassFlagsConverter" );
14
15 if(mlog.level()<=MSG::DEBUG)
16 mlog << MSG::DEBUG << "TrigPassFlagsCnv::createPersistent" << endmsg;
17
18 TrigPassFlagsCnv_p1 converter;
19 TrigPassFlags_PERS *persObj = converter.createPersistent( transObj, mlog );
20
21 return persObj;
22}
23
24//createTransient
26 MsgStream mlog(msgSvc(), "TrigPassFlagsConverter" );
27
28 if(mlog.level()<=MSG::DEBUG)
29 mlog << MSG::DEBUG << "TrigPassFlagsCnv::createTransient " << endmsg;
30
31 static const pool::Guid p1_guid("1FA7E531-B1F9-4EC5-9BD1-FD19CE7368B6");
32
33
34 if( compareClassGuid(p1_guid) ) {
35
36 std::unique_ptr< TrigPassFlags_p1 > col_vect( poolReadObject< TrigPassFlags_p1 >() );
37 TrigPassFlagsCnv_p1 converter;
38 return converter.createTransient( col_vect.get(), mlog );
39
40 }
41 else {
42 throw std::runtime_error("Unsupported persistent version");
43 }
44
45}
#define endmsg
T_AthenaPoolCustomCnv< TrigPassFlags, TrigPassFlags_PERS > TrigPassFlagsCnvBase
TrigPassFlags_p1 TrigPassFlags_PERS
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
virtual bool compareClassGuid(const Guid &clid) const
TrigPassFlagsCnv(ISvcLocator *svcloc)
virtual TrigPassFlags * createTransient()
virtual TrigPassFlags_PERS * createPersistent(TrigPassFlags *transObj)
A Flag is an ordered collection of bits (vector<bool>) that can hold additional (boolean) information...