![]() |
|
|
Generated: 18 Jul 2008 |
Functions | |
| bool | patchStreamers (MsgStream &log) |
| bool GaudiPoolDb::patchStreamers | ( | MsgStream & | log | ) |
Definition at line 309 of file PoolDbIOHandler.cpp.
References IsTypeOf(), and Gaudi::Units::s.
Referenced by PoolDbCacheSvc::initialize().
00309 { 00310 static bool first = true; 00311 if ( first ) { 00312 first = false; 00313 for ( Type_Iterator i=Type::Type_Begin(); i != Type::Type_End(); ++i) { 00314 Type typ = *i; 00315 if ( !(typ.IsStruct() || typ.IsClass()) ) continue; 00316 TClass* cl = 0; 00317 if ( IsTypeOf(typ,"pool::Reference") ) { 00318 cl = gROOT->GetClass(typ.Name(SCOPED).c_str()); 00319 if ( cl ) cl->AdoptStreamer(new PoolDbIOHandler<Reference>(typ,cl)); 00320 } 00321 else if ( IsTypeOf(typ,"pool::Token") ) { 00322 cl = gROOT->GetClass(typ.Name(SCOPED).c_str()); 00323 if ( cl ) cl->AdoptStreamer(new PoolDbIOHandler<Token>(typ,cl)); 00324 } 00325 } 00326 ROOT::Cintex::Cintex::Enable(); 00327 bool b2 = makeStreamer<SmartRefBase>(s); 00328 bool b3 = makeStreamer<ContainedObject>(s); 00329 return b2 && b3; 00330 } 00331 return true; 00332 }