The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::TestSuite::TestObjectVersion::UseObject Struct Reference
Inheritance diagram for Gaudi::TestSuite::TestObjectVersion::UseObject:
Collaboration diagram for Gaudi::TestSuite::TestObjectVersion::UseObject:

Public Member Functions

 UseObject (const std::string &name, ISvcLocator *svcLoc)
void operator() (const ObjectType &o) const override

Detailed Description

Definition at line 33 of file TestObjectVersion.cpp.

Constructor & Destructor Documentation

◆ UseObject()

Gaudi::TestSuite::TestObjectVersion::UseObject::UseObject ( const std::string & name,
ISvcLocator * svcLoc )
inline

Definition at line 34 of file TestObjectVersion.cpp.

35 : Consumer( name, svcLoc, { "InputLocation", "/Event/SomeData" } ) {}
details::Consumer< Signature, Traits_, details::isLegacy< Traits_ > > Consumer
Definition Consumer.h:47

Member Function Documentation

◆ operator()()

void Gaudi::TestSuite::TestObjectVersion::UseObject::operator() ( const ObjectType & o) const
inlineoverride

Definition at line 36 of file TestObjectVersion.cpp.

36 {
37 info() << "Retrieved object with version " << static_cast<int>( o.version() ) << endmsg;
38 if ( o.version() != 42 ) throw GaudiException( "Wrong object version", name(), StatusCode::FAILURE );
39 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
constexpr static const auto FAILURE
Definition StatusCode.h:100

The documentation for this struct was generated from the following file: