13#include "GaudiKernel/ClassID.h"
14#include "GaudiKernel/DataObject.h"
15#include "GaudiKernel/MsgStream.h"
16#include "GaudiKernel/StatusCode.h"
37 MsgStream log(msgSvc(),
"AthenaAttributeListCnv");
39 log << MSG::DEBUG <<
"initialize() in AthenaAttributeListCnv" <<
endmsg;
40 StatusCode status = Converter::initialize();
41 if (!status.isSuccess()) {
42 log << MSG::ERROR <<
"Can not initialize Converter base class." <<
endmsg;
54 MsgStream log(msgSvc(),
"AthenaAttributeListCnv");
55 log << MSG::DEBUG <<
"Creating AthenaAttrListAddress Object" <<
endmsg;
63 log << MSG::ERROR <<
"AttributeList ptr is 0 from AthenaAttrListAddress " <<
endmsg;
64 return(StatusCode::FAILURE);
67 log << MSG::ERROR <<
"Could not extract ptr for AthenaAttrListAddress " <<
endmsg;
68 return(StatusCode::FAILURE);
71 return(StatusCode::SUCCESS);
80 MsgStream log(msgSvc(),
"AthenaAttributeListCnv");
81 log << MSG::DEBUG <<
"Copy AthenaAttributeList ptr into AthenaAttrListAddress" <<
endmsg;
85 if ( pAddr !=
nullptr ) pAddr->release();
88 "POOLContainer_AthenaAttributeList][CLID=x");
92 log << MSG::DEBUG <<
"Created AthenaAttrListAddress with list ptr: " << list <<
endmsg;
93 return(StatusCode::SUCCESS);
This file contains the class definition for the AthenaAttrListAddress class.
This file contains the class definition for the AthenaAttributeListCnv class.
uint32_t CLID
The Class ID type.
This class provides an IOpaqueAddress/GenericAddress which can hold a pointer to an AthenaAttributeLi...
AthenaAttributeList * attrList()
Access to AttributeList.
void setAttrList(AthenaAttributeList *attrList)
Add AttributeList.
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
static long storageType()
virtual long int repSvcType() const
virtual ~AthenaAttributeListCnv()
Destructor.
static const CLID & classID()
AthenaAttributeListCnv(ISvcLocator *svcloc)
Constructor.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create a transient object from a POOL persistent representation.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create a POOL persistent representation for a transient object.
An AttributeList represents a logical row of attributes in a metadata table.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const DbType POOL_StorageType