#include <GaudiUtils/GetData.h>
Inheritance diagram for Gaudi::Utils::GetData< TYPE >:
Public Types | |
typedef TYPE | Type |
typedef _GetType< Type >::return_type | return_type |
the actual return type | |
Public Member Functions | |
template<class COMMON> | |
return_type | operator() (const COMMON &common, IDataProviderSvc *service, const std::string &location) const |
the only one essential method |
Definition at line 66 of file GetData.h.
typedef TYPE Gaudi::Utils::GetData< TYPE >::Type |
typedef _GetType<Type>::return_type Gaudi::Utils::GetData< TYPE >::return_type |
return_type Gaudi::Utils::GetData< TYPE >::operator() | ( | const COMMON & | common, | |
IDataProviderSvc * | service, | |||
const std::string & | location | |||
) | const [inline] |
the only one essential method
common | the actual "worker" | |
service | pointer to Data Provider Service | |
location | location of objects in TES |
use Data Provider Service
check the data
debug printout
Definition at line 84 of file GetData.h.
00087 { 00089 SmartDataPtr<TYPE> obj ( service , location ) ; 00090 return_type aux = obj ; 00092 common.Assert ( !(!aux) , "get():: No valid data at '" + location + "'" ) ; 00094 if ( common.msgLevel ( MSG::DEBUG ) ) 00095 { common.debug() << "The object of type '" 00096 << System::typeinfoName(typeid(aux)) 00097 << "' has been retrieved from TS at address '" 00098 << location << "'" << endreq ; } 00099 // return located *VALID* data 00100 return aux ; 00101 // ====================================================================== 00102 }