Skip to content
Snippets Groups Projects
Commit 24ab04ba authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthOnnxComps: use extends to auto-declare interface inheritance

parent 74c3cdea
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ namespace AthOnnx {
///
/// @author Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
///
class OnnxRuntimeSvc : public asg::AsgService, virtual public IOnnxRuntimeSvc {
class OnnxRuntimeSvc : public extends<asg::AsgService, IOnnxRuntimeSvc> {
public:
......
......@@ -6,10 +6,10 @@
namespace AthOnnx {
OnnxRuntimeSvc::OnnxRuntimeSvc(const std::string& name, ISvcLocator* svc) :
asg::AsgService(name, svc)
base_class(name, svc)
{
declareServiceInterface<AthOnnx::IOnnxRuntimeSvc>();
}
StatusCode OnnxRuntimeSvc::initialize() {
// Create the environment object.
......
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