20 #include "GaudiKernel/GenericAddress.h"
21 #include "GaudiKernel/IRegistry.h"
22 #include "Gaudi/Property.h"
36 ISvcLocator* pSvcLocator ) :
78 if ( IConversionSvc::interfaceID().versionMatch(riid) ) {
79 *ppvInterface =
dynamic_cast<IConversionSvc*
>(
this);
82 return ::AthCnvSvc::queryInterface(riid, ppvInterface);
85 return StatusCode::SUCCESS;
95 return dynamic_cast<GenericAddress*
>(pAddress)
97 : StatusCode::FAILURE;
99 return StatusCode::FAILURE;
109 ATH_MSG_DEBUG(
"-->createObj(" << pAddress->par()[0] <<
"/" << pAddress->par()[1]
110 <<
", " << refpObject <<
")...");
111 GenericAddress *addr =
dynamic_cast<GenericAddress*
>(pAddress);
113 ATH_MSG_DEBUG(pAddress->par()[0] <<
"/" << pAddress->par()[1]
114 <<
" is NOT a GenericAddress!");
115 return StatusCode::FAILURE;
117 ATH_MSG_DEBUG(
" par: " << pAddress->par()[0] <<
"/" << pAddress->par()[1]
119 " ipar: " << *pAddress->ipar());
131 ATH_MSG_DEBUG(
"::createRep(" << refpAddress <<
", " << pObject <<
")...");
134 ATH_MSG_ERROR(
"::createRep: received null ptr to DataObject");
135 return StatusCode::FAILURE;
137 return ::AthCnvSvc::createRep(pObject, refpAddress);
148 ATH_MSG_DEBUG(
"::fillRepRefs(" << pAddress <<
", " << pObject <<
")...");
149 if (0==pAddress || 0==pObject) {
150 ATH_MSG_ERROR(
"::fillRepRefs: null ptr received! (paddr=" << pAddress
151 <<
", pobj=" << pObject <<
")");
152 return StatusCode::FAILURE;
154 return ::AthCnvSvc::fillRepRefs(pAddress, pObject);
163 const std::string& openMode)
166 << outputConnectionSpec <<
", "
170 TFile *
f = TFile::Open(outputConnectionSpec.c_str(),
"recreate");
172 return StatusCode::FAILURE;
175 return StatusCode::SUCCESS;
185 << outputConnectionSpec <<
")");
187 TFile *
f = TFile::Open(outputConnectionSpec.c_str(),
"recreate");
189 return StatusCode::FAILURE;
191 return StatusCode::SUCCESS;
200 <<
", " << doCommit <<
")...");
201 return StatusCode::SUCCESS;
219 const std::string*
par,
220 const unsigned long*
ip,
221 IOpaqueAddress*& refpAddress)
224 <<
", " <<
par <<
", " <<
ip <<
", " << refpAddress
226 return ::AthCnvSvc::createAddress(svcType, clid,
par,
ip, refpAddress);
234 std::string& refAddress)
237 << refAddress <<
")...");
239 refAddress = *pAddress->par();
240 return StatusCode::SUCCESS;
242 ATH_MSG_ERROR(
"::convertAddress: null pointer to IOpaqueAddress !");
243 return StatusCode::FAILURE;
254 const std::string& refAddress,
255 IOpaqueAddress*& refpAddress)
258 <<
", " << refAddress <<
", " << refpAddress
260 if (svcType != ROOT_StorageType) {
264 return StatusCode::FAILURE;
266 refpAddress =
new GenericAddress(ROOT_StorageType, clid, refAddress);
267 return StatusCode::SUCCESS;
287 const ICnvFactory* fac)
290 <<
", " << fac <<
")...");