/******************************************************************************** * Copyright (C) 2014-2018 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence (LGPL) version 3, * * copied verbatim in the file "LICENSE" * ********************************************************************************/ #ifndef FAIR_MQ_TRANSPORTS_H #define FAIR_MQ_TRANSPORTS_H #include #include #include #include /// TODO deprecate this namespace namespace FairMQ { enum class Transport { DEFAULT, ZMQ, NN, SHM, OFI }; static std::unordered_map TransportTypes { { "default", Transport::DEFAULT }, { "zeromq", Transport::ZMQ }, { "nanomsg", Transport::NN }, { "shmem", Transport::SHM }, { "ofi", Transport::OFI } }; } namespace fair { namespace mq { using Transport = ::FairMQ::Transport; using ::FairMQ::TransportTypes; } /* namespace mq */ } /* namespace fair */ namespace std { template<> struct hash : fair::mq::tools::HashEnum {}; } /* namespace std */ #endif /* FAIR_MQ_TRANSPORTS_H */