|
Gaudi Framework, version v21r7 |
| Home | Generated: 22 Jan 2010 |
Functions | |
| bool | patchStreamers (MsgStream &log) |
Definition at line 297 of file PoolDbIOHandler.cpp.
00297 { 00298 static bool first = true; 00299 if ( first ) { 00300 first = false; 00301 for ( Type_Iterator i=Type::Type_Begin(); i != Type::Type_End(); ++i) { 00302 Type typ = *i; 00303 if ( !(typ.IsStruct() || typ.IsClass()) ) continue; 00304 TClass* cl = 0; 00305 if ( IsTypeOf(typ,"pool::Reference") ) { 00306 cl = gROOT->GetClass(typ.Name(SCOPED).c_str()); 00307 if ( cl ) cl->AdoptStreamer(new PoolDbIOHandler<Reference>(typ,cl)); 00308 } 00309 else if ( IsTypeOf(typ,"pool::Token") ) { 00310 cl = gROOT->GetClass(typ.Name(SCOPED).c_str()); 00311 if ( cl ) cl->AdoptStreamer(new PoolDbIOHandler<Token>(typ,cl)); 00312 } 00313 } 00314 ROOT::Cintex::Cintex::Enable(); 00315 bool b2 = makeStreamer<SmartRefBase>(s); 00316 bool b3 = makeStreamer<ContainedObject>(s); 00317 return b2 && b3; 00318 } 00319 return true; 00320 }