23 : Producer( name, svcLoc, KeyValue(
"OutputLocation",
"/Event/SomeData" ) ) {}
27 info() <<
"Created object with version " <<
static_cast<int>( o.
version() ) <<
endmsg;
35 : Consumer( name, svcLoc, KeyValue(
"InputLocation",
"/Event/SomeData" ) ) {}
37 info() <<
"Retrieved object with version " <<
static_cast<int>( o.
version() ) <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
unsigned char version() const
Retrieve version number of this object representation.
void setVersion(unsigned char vsn)
Set version number of this object representation.
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
template class KeyedContainer, KeyedContainer.h
constexpr static const auto FAILURE
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
KeyedContainer< KeyedObject< std::size_t > > ObjectType
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
CreateObject(const std::string &name, ISvcLocator *svcLoc)
ObjectType operator()() const override
void operator()(const ObjectType &o) const override
UseObject(const std::string &name, ISvcLocator *svcLoc)