|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
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 bool checkData=true) const |
| the only one essential method | |
Helper structure for implementation of "get"-functions for GaudiCommon<BASE>
Definition at line 81 of file GetData.h.
| typedef _GetType<Type>::return_type Gaudi::Utils::GetData< TYPE >::return_type |
| typedef TYPE Gaudi::Utils::GetData< TYPE >::Type |
| return_type Gaudi::Utils::GetData< TYPE >::operator() | ( | const COMMON & | common, |
| IDataProviderSvc * | service, | ||
| const std::string & | location, | ||
| const bool | checkData = true |
||
| ) | const [inline] |
the only one essential method
| common | the actual "worker" |
| service | pointer to Data Provider Service |
| location | location of objects in TES |
| checkData | whether to check if the pointer is valid before returning it |
Definition at line 100 of file GetData.h.
{
// use Data Provider Service
return_type obj = getFromTS<Type>(service, location);
if (checkData) { // check the data
common.Assert(obj, "get():: No valid data at '" + location + "'");
}
// debug printout
if ( common.msgLevel ( MSG::DEBUG ) ) {
common.debug() << "The object of type '"
<< System::typeinfoName(typeid(obj))
<< "' "
<< (obj ? "has been" : "could not be")
<< " retrieved from TS at address '"
<< location << "'" << endmsg ;
}
// return located data
return obj ;
// ======================================================================
}