Helper structure for implementation of "getOrCreate"-functions for GaudiCommon<BASE>
More...
#include </scratch/z5/marcocle/GaudiDocs/lhcb-release/996/GAUDI/GAUDI_v26r4/InstallArea/x86_64-slc6-gcc48-opt/include/GaudiAlg/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 402 of file GetData.h.
template<class TYPE, class TYPE2>
the actual data getter
Definition at line 407 of file GetData.h.
template<class TYPE, class TYPE2>
the actual data getter
Definition at line 407 of file GetData.h.
template<class TYPE, class TYPE2>
the actual return type
Definition at line 413 of file GetData.h.
template<class TYPE, class TYPE2>
the actual return type
Definition at line 413 of file GetData.h.
template<class TYPE, class TYPE2>
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 425 of file GetData.h.
433 TYPE2* o =
new TYPE2() ;
434 common.put ( service , o , location2 ) ;
436 { common.debug() <<
"The object of type '"
438 <<
"' has been created from TS at address '"
439 << location2 <<
"'" <<
endmsg ; }
444 common.Assert ( !(!ret) ,
"get():: No valid data at '" + location +
"'" ) ;
446 { common.debug() <<
"The object of type '"
448 <<
"' has been retrieved from TS at address '"
449 << location <<
"'" <<
endmsg ; }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Getter::return_type return_type
the actual return type
A small class used to access easily (and efficiently) data items residing in data stores...
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 425 of file GetData.h.
433 TYPE2* o =
new TYPE2() ;
434 common.put ( service , o , location2 ) ;
436 { common.debug() <<
"The object of type '"
438 <<
"' has been created from TS at address '"
439 << location2 <<
"'" <<
endmsg ; }
444 common.Assert ( !(!ret) ,
"get():: No valid data at '" + location +
"'" ) ;
446 { common.debug() <<
"The object of type '"
448 <<
"' has been retrieved from TS at address '"
449 << location <<
"'" <<
endmsg ; }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
Getter::return_type return_type
the actual return type
A small class used to access easily (and efficiently) data items residing in data stores...
The documentation for this struct was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/include/GaudiAlg/GetData.h