|
Gaudi Framework, version v22r4 |
| Home | Generated: Fri Sep 2 2011 |
Helper structure for implementation of "get"-functions for GaudiCommon<BASE> More...
#include <GetData.h>

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 | |
Helper structure for implementation of "get"-functions for GaudiCommon<BASE>
Definition at line 67 of file GetData.h.
| 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 85 of file GetData.h.
{
SmartDataPtr<TYPE> obj ( service , location ) ;
return_type aux = obj ;
common.Assert ( !(!aux) , "get():: No valid data at '" + location + "'" ) ;
if ( common.msgLevel ( MSG::DEBUG ) )
{ common.debug() << "The object of type '"
<< System::typeinfoName(typeid(aux))
<< "' has been retrieved from TS at address '"
<< location << "'" << endmsg ; }
// return located *VALID* data
return aux ;
// ======================================================================
}