Helper structure for implementation of "getOrCreate"-functions for GaudiCommon<BASE>
More...
#include <GetData.h>
template<class TYPE, class TYPE2>
struct Gaudi::Utils::GetOrCreateData< TYPE, TYPE2 >
Helper structure for implementation of "getOrCreate"-functions for GaudiCommon<BASE>
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
- Date
- 2008-07-22
Definition at line 404 of file GetData.h.
template<class TYPE, class TYPE2>
the actual data getter
Definition at line 409 of file GetData.h.
template<class TYPE, class TYPE2>
the actual return type
Definition at line 415 of file GetData.h.
template<class TYPE, class TYPE2>
template<class TYPE, class TYPE2>
template<class COMMON >
the only one essential method
- Parameters
-
| common | the actual "worker" |
| service | pointer to Data Provider Service |
| location | location of objects in TES |
- Returns
- the data
check the data
Definition at line 427 of file GetData.h.
{
if ( !obj )
{
TYPE2* o = new TYPE2() ;
common.put ( service , o , location2 ) ;
{ common.debug() << "The object of type '"
<< "' has been created from TS at address '"
<< location2 <<
"'" <<
endmsg ; }
return _o ;
}
common.Assert ( !(!ret) , "get():: No valid data at '" + location + "'" ) ;
{ common.debug() << "The object of type '"
<< "' has been retrieved from TS at address '"
<< location <<
"'" <<
endmsg ; }
return ret ;
}
The documentation for this struct was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r7/GaudiAlg/GaudiAlg/GetData.h