mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Remove useless code
This commit is contained in:
committed by
Dennis Klein
parent
882edbbdb8
commit
3c4158addb
@@ -13,15 +13,13 @@
|
||||
|
||||
namespace bpo = boost::program_options;
|
||||
|
||||
class Processor : public FairMQDevice
|
||||
struct Processor : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Processor()
|
||||
{
|
||||
OnData("data1", &Processor::HandleData);
|
||||
}
|
||||
|
||||
protected:
|
||||
bool HandleData(FairMQMessagePtr& msg, int)
|
||||
{
|
||||
LOG(info) << "Received data, processing...";
|
||||
|
@@ -13,17 +13,13 @@
|
||||
|
||||
namespace bpo = boost::program_options;
|
||||
|
||||
class Sampler : public FairMQDevice
|
||||
struct Sampler : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Sampler() = default;
|
||||
|
||||
void InitTask() override
|
||||
{
|
||||
fIterations = fConfig->GetValue<uint64_t>("iterations");
|
||||
}
|
||||
|
||||
protected:
|
||||
bool ConditionalRun() override
|
||||
{
|
||||
// NewSimpleMessage creates a copy of the data and takes care of its destruction (after the transfer takes place).
|
||||
|
@@ -13,9 +13,8 @@
|
||||
|
||||
namespace bpo = boost::program_options;
|
||||
|
||||
class Sink : public FairMQDevice
|
||||
struct Sink : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Sink()
|
||||
{
|
||||
OnData("data2", &Sink::HandleData);
|
||||
@@ -26,7 +25,6 @@ class Sink : public FairMQDevice
|
||||
fIterations = fConfig->GetValue<uint64_t>("iterations");
|
||||
}
|
||||
|
||||
protected:
|
||||
bool HandleData(FairMQMessagePtr& msg, int)
|
||||
{
|
||||
LOG(info) << "Received: \"" << std::string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";
|
||||
|
Reference in New Issue
Block a user