Skip to content
Snippets Groups Projects
Commit b57a76b5 authored by Rafal Bielski's avatar Rafal Bielski :wave:
Browse files

use extends<> and remove queryInterface in TrigEventSelectorByteStream

making use of Gaudi macros to simplify the implementation - queryInterface is handled by the base wrapper class
parent 39aab928
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
// Standard constructor // Standard constructor
// ============================================================================= // =============================================================================
TrigEventSelectorByteStream::TrigEventSelectorByteStream(const std::string& name, ISvcLocator* svcLoc) TrigEventSelectorByteStream::TrigEventSelectorByteStream(const std::string& name, ISvcLocator* svcLoc)
: AthService(name, svcLoc), : base_class(name, svcLoc),
m_eventSource("ByteStreamInputSvc", name), m_eventSource("ByteStreamInputSvc", name),
m_evtStore("StoreGateSvc", name) { m_evtStore("StoreGateSvc", name) {
declareProperty("ByteStreamInputSvc", m_eventSource); declareProperty("ByteStreamInputSvc", m_eventSource);
...@@ -32,23 +32,6 @@ TrigEventSelectorByteStream::TrigEventSelectorByteStream(const std::string& name ...@@ -32,23 +32,6 @@ TrigEventSelectorByteStream::TrigEventSelectorByteStream(const std::string& name
// ============================================================================= // =============================================================================
TrigEventSelectorByteStream::~TrigEventSelectorByteStream() {} TrigEventSelectorByteStream::~TrigEventSelectorByteStream() {}
// =============================================================================
// Implementation of IInterface::queryInterface
// =============================================================================
StatusCode TrigEventSelectorByteStream::queryInterface(const InterfaceID& riid, void** ppvInterface)
{
ATH_MSG_VERBOSE("start of " << __FUNCTION__);
if(IEvtSelector::interfaceID().versionMatch(riid))
*ppvInterface = static_cast<IEvtSelector*>(this);
else
return AthService::queryInterface(riid, ppvInterface);
addRef();
ATH_MSG_VERBOSE("end of " << __FUNCTION__);
return StatusCode::SUCCESS;
}
// ============================================================================= // =============================================================================
// Implementation of Service::initialize // Implementation of Service::initialize
// ============================================================================= // =============================================================================
......
...@@ -17,8 +17,7 @@ class StoreGateSvc; ...@@ -17,8 +17,7 @@ class StoreGateSvc;
* @brief online implementation of IEvtSelector for ByteStream * @brief online implementation of IEvtSelector for ByteStream
*/ */
class TrigEventSelectorByteStream : public AthService, class TrigEventSelectorByteStream : public extends<AthService, IEvtSelector> {
virtual public IEvtSelector {
public: public:
/** /**
* @class TrigEventSelectorByteStream::Context * @class TrigEventSelectorByteStream::Context
...@@ -44,9 +43,6 @@ public: ...@@ -44,9 +43,6 @@ public:
/// Standard destructor /// Standard destructor
virtual ~TrigEventSelectorByteStream(); virtual ~TrigEventSelectorByteStream();
// ------------------------- IInterface methods -----------------------------
virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvInterface) override;
// ------------------------- Service methods -------------------------------- // ------------------------- Service methods --------------------------------
virtual StatusCode initialize() override; virtual StatusCode initialize() override;
virtual StatusCode finalize() override; virtual StatusCode finalize() override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment