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;
CreateObject(const std::string &name, ISvcLocator *svcLoc)
details::Consumer< Signature, Traits_, details::isLegacy< Traits_ > > Consumer
void setVersion(unsigned char vsn)
Set version number of this object representation.
void operator()(const ObjectType &o) const override
UseObject(const std::string &name, ISvcLocator *svcLoc)
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.
Header file for std:chrono::duration-based Counters.
#define DECLARE_COMPONENT(type)
unsigned char version() const
Retrieve version number of this object representation.
constexpr static const auto FAILURE
ObjectType operator()() const override