ATLAS Offline Software
|
Helper for calling a TP converter from an Athena converter. More...
#include <TPCnvElt.h>
Public Types | |
typedef TRANS | Trans_t |
Make available the persistent and transient types. More... | |
typedef TRANS | Pers_t |
Public Member Functions | |
TPCnvElt () | |
Constructor. More... | |
std::unique_ptr< Trans_t > | createTransient (CNV &parent, const std::string &key, MsgStream &msg) |
Read the persistent object and convert it to transient. More... | |
bool | persToTrans (CNV &parent, Trans_t *trans, const std::string &key, MsgStream &msg) |
Read the persistent object and convert it to transient. More... | |
Private Attributes | |
Guid | m_guid |
GUID for the persistent class we read. More... | |
Helper for calling a TP converter from an Athena converter.
Specialization for the case of no conversion.
Definition at line 118 of file TPCnvElt.h.
typedef TRANS AthenaPoolCnvSvc::TPCnvElt< CNV, T_TPCnvNull< TRANS > >::Pers_t |
Definition at line 123 of file TPCnvElt.h.
typedef TRANS AthenaPoolCnvSvc::TPCnvElt< CNV, T_TPCnvNull< TRANS > >::Trans_t |
Make available the persistent and transient types.
Definition at line 122 of file TPCnvElt.h.
AthenaPoolCnvSvc::TPCnvElt< CNV, T_TPCnvNull< TRANS > >::TPCnvElt | ( | ) |
Constructor.
std::unique_ptr<Trans_t> AthenaPoolCnvSvc::TPCnvElt< CNV, T_TPCnvNull< TRANS > >::createTransient | ( | CNV & | parent, |
const std::string & | key, | ||
MsgStream & | msg | ||
) |
Read the persistent object and convert it to transient.
parent | The top-level pool converter object. |
key | The SG key of the object being read. |
msg | MsgStream for error reporting. |
Returns a newly-allocated object. If the type of the persistent object on the file does not match the type that this converter handles, return nullptr. Other errors are reported by raising exceptions.
bool AthenaPoolCnvSvc::TPCnvElt< CNV, T_TPCnvNull< TRANS > >::persToTrans | ( | CNV & | parent, |
Trans_t * | trans, | ||
const std::string & | key, | ||
MsgStream & | msg | ||
) |
Read the persistent object and convert it to transient.
parent | The top-level pool converter object. |
trans | The transient object to modify. |
key | The SG key of the object being read. |
msg | MsgStream for error reporting. |
Overwrites the provided transient object. If the type of the persistent object on the file does not match the type that this converter handles, returns false. Other errors are reported by raising exceptions.
|
private |
GUID for the persistent class we read.
Definition at line 164 of file TPCnvElt.h.