mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Refactor FairMQTools
* Split header, add common header * Transform to canonical namespace * Deprecate old header * Adapt to new Tools.h
This commit is contained in:
committed by
Mohammad Al-Turany
parent
9215c81362
commit
d2c78479f0
@@ -30,7 +30,7 @@
|
||||
#include "FairMQSocket.h"
|
||||
#include "FairMQDevice.h"
|
||||
#include "FairMQLogger.h"
|
||||
#include "tools/FairMQTools.h"
|
||||
#include <fairmq/Tools.h>
|
||||
|
||||
#include "options/FairMQProgOptions.h"
|
||||
#include "zeromq/FairMQTransportFactoryZMQ.h"
|
||||
@@ -203,9 +203,9 @@ void FairMQDevice::InitWrapper()
|
||||
// if the configured network interface is default, get its name from the default route
|
||||
if (fNetworkInterface == "default")
|
||||
{
|
||||
fNetworkInterface = FairMQ::tools::getDefaultRouteNetworkInterface();
|
||||
fNetworkInterface = fair::mq::tools::getDefaultRouteNetworkInterface();
|
||||
}
|
||||
vi->fAddress = "tcp://" + FairMQ::tools::getInterfaceIP(fNetworkInterface) + ":1";
|
||||
vi->fAddress = "tcp://" + fair::mq::tools::getInterfaceIP(fNetworkInterface) + ":1";
|
||||
}
|
||||
// fill the uninitialized list
|
||||
uninitializedBindingChannels.push_back(&(*vi));
|
||||
@@ -910,16 +910,16 @@ unique_ptr<FairMQTransportFactory> FairMQDevice::MakeTransport(const string& tra
|
||||
|
||||
if (transport == "zeromq")
|
||||
{
|
||||
tr = FairMQ::tools::make_unique<FairMQTransportFactoryZMQ>();
|
||||
tr = fair::mq::tools::make_unique<FairMQTransportFactoryZMQ>();
|
||||
}
|
||||
else if (transport == "shmem")
|
||||
{
|
||||
tr = FairMQ::tools::make_unique<FairMQTransportFactorySHM>();
|
||||
tr = fair::mq::tools::make_unique<FairMQTransportFactorySHM>();
|
||||
}
|
||||
#ifdef NANOMSG_FOUND
|
||||
else if (transport == "nanomsg")
|
||||
{
|
||||
tr = FairMQ::tools::make_unique<FairMQTransportFactoryNN>();
|
||||
tr = fair::mq::tools::make_unique<FairMQTransportFactoryNN>();
|
||||
}
|
||||
#endif
|
||||
else
|
||||
|
Reference in New Issue
Block a user