Gaudi Framework, version v20r2

Generated: 18 Jul 2008

GaudiPoolDb Namespace Reference


Functions

bool patchStreamers (MsgStream &log)


Function Documentation

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    }


Generated at Fri Jul 18 12:10:31 2008 for Gaudi Framework, version v20r2 by Doxygen version 1.5.1 written by Dimitri van Heesch, © 1997-2004