Go to the documentation of this file.
17 namespace TestObjectVersion {
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;
details::Consumer< Signature, Traits_, details::isLegacy< Traits_ > > Consumer
void setVersion(unsigned char vsn)
Set version number of this object representation.
CreateObject(const std::string &name, ISvcLocator *svcLoc)
void operator()(const ObjectType &o) const override
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
template class KeyedContainer, KeyedContainer.h
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
#define DECLARE_COMPONENT(type)
unsigned char version() const
Retrieve version number of this object representation.
ObjectType operator()() const override
constexpr static const auto FAILURE
UseObject(const std::string &name, ISvcLocator *svcLoc)