Helper structure for implementation of "get"-functions for GaudiCommon<BASE>
More...
#include <GetData.h>
|
| 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
|
| |
template<class TYPE>
struct Gaudi::Utils::GetData< TYPE >
Helper structure for implementation of "get"-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 81 of file GetData.h.
the actual return type
Definition at line 87 of file GetData.h.
template<class TYPE>
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 |
| checkData | whether to check if the pointer is valid before returning it |
- Returns
- the data
Definition at line 100 of file GetData.h.
{
if (checkData) {
common.Assert(obj, "get():: No valid data at '" + location + "'");
}
common.debug() << "The object of type '"
<< "' "
<< (obj ? "has been" : "could not be")
<< " retrieved from TS at address '"
<< location <<
"'" <<
endmsg ;
}
return obj ;
}
The documentation for this struct was generated from the following file:
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiAlg/GaudiAlg/GetData.h