#include <AthenaPoolCnvTPExtension.h>
Definition at line 14 of file AthenaPoolCnvTPExtension.h.
◆ extCnvMap_t
◆ extCnvMapMap_t
◆ AthenaPoolCnvTPExtension()
AthenaPoolCnvTPExtension::AthenaPoolCnvTPExtension |
( |
| ) |
|
|
inline |
◆ clone()
◆ deletePersistentObjects()
void AthenaConverterTLPExtension::deletePersistentObjects |
( |
| ) |
|
|
virtualinherited |
Delete persistent objects held by attached extending converters (used mainly in case of abort)
Definition at line 148 of file AthenaConverterTLPExtension.cxx.
152 cnv->second->deletePersistentObjects();
◆ getTopLevelTPCnv()
◆ getTopLevelTPCnvForReading()
returns the current top-level TP converter.
This converter may be different from the main one in case of schema evolution
Definition at line 100 of file AthenaConverterTLPExtension.h.
◆ getTPCnvID()
unsigned short AthenaConverterTLPExtension::getTPCnvID |
( |
| ) |
|
|
inherited |
◆ name()
virtual const std::string AthenaConverterTLPExtension::name |
( |
| ) |
const |
|
inlinevirtualinherited |
Get name of this converter (anything that identifies it)
- Returns
- Name of this converter
Definition at line 85 of file AthenaConverterTLPExtension.h.
85 {
return "Extended Athena TP Converter"; }
◆ needsCloning()
virtual bool AthenaConverterTLPExtension::needsCloning |
( |
| ) |
const |
|
inlinevirtualinherited |
Find out if this converter needs to be cloned Returns true if this converter was already registered once.
Definition at line 80 of file AthenaConverterTLPExtension.h.
◆ readExtendingObjects()
void AthenaConverterTLPExtension::readExtendingObjects |
( |
void * |
baseObj | ) |
|
|
virtualinherited |
Read all component persistent objects.
- Parameters
-
baseObj | [IN] pointer to the principal persistent object holding the list of tokens for all component persistent objects to read |
Definition at line 99 of file AthenaConverterTLPExtension.cxx.
113 throw std::runtime_error(
"Extending TP converter not available");
115 extendingConverters = extCnvMapIter->second;
118 for( TPCnvTokenList_p1::const_iterator
it =
tokens->begin();
it !=
tokens->end(); ++
it ) {
119 if(
it->token().size() < 36 ) {
121 err <<
"Corrupted Token in the list of extensions. Token='" <<
it->token() <<
"'"
122 <<
" CnvID=" <<
it->converterID() <<
", Token list size=" <<
tokens->size();
123 throw std::runtime_error(
err.str());
125 extCnvMap_t::const_iterator cnv = extendingConverters->find(
it->converterID() );
126 if( cnv == extendingConverters->end() ) {
128 err <<
"Extending TP converter not loaded! "
129 <<
"missing ExtCnvID=" <<
it->converterID()
130 <<
" corresponding POOL token: " <<
it->token();
131 throw std::runtime_error(
err.str());
137 cnv->second->readObject(
it->token() );
◆ readObject()
virtual void AthenaConverterTLPExtension::readObject |
( |
const std::string & |
| ) |
|
|
inlinevirtualinherited |
◆ registerExtendingCnv() [1/2]
◆ registerExtendingCnv() [2/2]
virtual bool AthenaPoolCnvTPExtension::registerExtendingCnv |
( |
IConverter * |
cnv | ) |
|
|
inlinevirtual |
Definition at line 23 of file AthenaPoolCnvTPExtension.h.
26 if( !extending_converter )
27 throw std::runtime_error(
"Attempt to register extending AthenaPool converter that does not inherit from AthenaPoolCnvTPExtension");
◆ resetTPCnvForReading()
void AthenaConverterTLPExtension::resetTPCnvForReading |
( |
| ) |
|
|
inlineinherited |
Reset to 0 the TL TP converter for reading.
Prevents the use of the previous TP converter if none was set before reading the next object Called automatically after reading an object.
Definition at line 111 of file AthenaConverterTLPExtension.h.
◆ usingTPCnvForReading() [1/2]
void AthenaPoolCnvTPExtension::usingTPCnvForReading |
( |
TopLevelTPCnvBase & |
baseTLPcnv | ) |
|
|
inline |
◆ usingTPCnvForReading() [2/2]
void AthenaConverterTLPExtension::usingTPCnvForReading |
( |
void * |
cnv | ) |
|
|
protectedinherited |
◆ wasClonedFrom()
Remember the original converter that this one was cloned from.
- Parameters
-
converter | [IN] the original converter |
Definition at line 75 of file AthenaConverterTLPExtension.h.
◆ writeObject()
virtual std::unique_ptr<const Token> AthenaConverterTLPExtension::writeObject |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
|
inlinevirtualinherited |
Writes the extending persistent object created by this converter Called from the EXTENDED (principal) Athena converter Implemented only in EXTENDING Athena converters.
- Parameters
-
key | [in] StoreGet object key (in APR used to determine storage container placement) Returns Token for the written object |
Definition at line 60 of file AthenaConverterTLPExtension.h.
◆ m_clonedExtendingCnvs
◆ m_extCnvMapMap
◆ m_extendingConverters
extCnvMap_t AthenaConverterTLPExtension::m_extendingConverters |
|
protectedinherited |
◆ m_TLCnvForReading
additional Top Level TP converter used only for reading tells which converter is used in case of reading old versions (as different versions have different converters) NOT owned byt his class
Definition at line 147 of file AthenaConverterTLPExtension.h.
The documentation for this class was generated from the following file: