fix: Use namespaced typenames/headers

This commit is contained in:
Dennis Klein
2022-03-22 13:59:37 +01:00
parent 0959095a39
commit 12a85c6fb1
32 changed files with 114 additions and 116 deletions

View File

@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2015-2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2015-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -18,7 +18,7 @@
namespace fair::mq::test
{
class Receiver : public FairMQDevice
class Receiver : public Device
{
public:
Receiver(const std::string& channelName)
@@ -33,7 +33,7 @@ class Receiver : public FairMQDevice
auto Run() -> void override
{
auto msg = FairMQMessagePtr{NewMessage()};
auto msg = NewMessage();
if (Receive(msg, fChannelName) >= 0) {
LOG(info) << "received empty message";
} else {

View File

@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2015-2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2015-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -18,7 +18,7 @@
namespace fair::mq::test
{
class Sender : public FairMQDevice
class Sender : public Device
{
public:
Sender(const std::string& channelName)
@@ -33,7 +33,7 @@ class Sender : public FairMQDevice
auto Run() -> void override
{
auto msg = FairMQMessagePtr{NewMessage()};
auto msg = NewMessage();
if (Send(msg, fChannelName) >= 0) {
LOG(info) << "sent empty message";
} else {

View File

@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014-2018 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -20,11 +20,11 @@ namespace
using namespace std;
class TestVersion : public FairMQDevice
class TestVersion : public fair::mq::Device
{
public:
TestVersion(fair::mq::tools::Version version)
: FairMQDevice(version)
: fair::mq::Device(version)
{}
};