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

Public Member Functions

 CreateObject (const std::string &name, ISvcLocator *svcLoc)
ObjectType operator() () const override

Detailed Description

Definition at line 21 of file TestObjectVersion.cpp.

Constructor & Destructor Documentation

◆ CreateObject()

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

Definition at line 22 of file TestObjectVersion.cpp.

23 : Producer( name, svcLoc, { "OutputLocation", "/Event/SomeData" } ) {}
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
Definition Producer.h:37

Member Function Documentation

◆ operator()()

ObjectType Gaudi::TestSuite::TestObjectVersion::CreateObject::operator() ( ) const
inlineoverride

Definition at line 24 of file TestObjectVersion.cpp.

24 {
25 ObjectType o;
26 o.setVersion( 42 );
27 info() << "Created object with version " << static_cast<int>( o.version() ) << endmsg;
28 return o;
29 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
void setVersion(unsigned char vsn)
Set version number of this object representation.
Definition DataObject.h:86
KeyedContainer< KeyedObject< std::size_t > > ObjectType

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