1#ifndef LIBS_COMM_ECOMMUNICATIONS_HPP_
2#define LIBS_COMM_ECOMMUNICATIONS_HPP_
6#include "third_party/magic_enum/magic_enum.hpp"
27 const std::map<iv::comms::eProtocolType, std::string_view> stringsCommunicationProtocol {
35 const auto it = stringsCommunicationProtocol.find(eCommunicationProtocol);
37 return std::string(it == stringsCommunicationProtocol.end() ? magic_enum::enum_name(eCommunicationProtocol)
43 const std::map<iv::comms::eNetworkType, std::string_view> stringsNetworksType {
51 const auto it = stringsNetworksType.find(eNetworkType);
53 return std::string(it == stringsNetworksType.end() ?
"None" : it->second);
std::string strCommunicationProtocol(const iv::comms::eProtocolType eCommunicationProtocol)
Definition ECommunications.hpp:25
static constexpr std::string_view kPrvNetworkTypeExternal
Definition ECommunications.hpp:22
static constexpr std::string_view kPrvNetworkTypeApi
Definition ECommunications.hpp:23
static constexpr std::string_view kPrvCommunicationProtocolCan
Definition ECommunications.hpp:11
static constexpr std::string_view kPrvCommunicationProtocolLoggers
Definition ECommunications.hpp:16
static constexpr std::string_view kPrvCommunicationProtocolNmea0183
Definition ECommunications.hpp:14
static constexpr std::string_view kPrvNetworkTypeVdr
Definition ECommunications.hpp:20
std::string strNetworkType(const iv::comms::eNetworkType eNetworkType)
Definition ECommunications.hpp:41
static constexpr std::string_view kPrvNetworkTypeWatchCall
Definition ECommunications.hpp:21
static constexpr std::string_view kPrvNetworkTypeIas
Definition ECommunications.hpp:18
static constexpr std::string_view kPrvCommunicationProtocolJ1939
Definition ECommunications.hpp:12
static constexpr std::string_view kPrvNetworkTypeRedundancy
Definition ECommunications.hpp:19
static constexpr std::string_view kPrvCommunicationProtocolRedundancy
Definition ECommunications.hpp:15
static constexpr std::string_view kPrvCommunicationProtocolModbus
Definition ECommunications.hpp:13
eNetworkType
Definition enums.hpp:250
eProtocolType
Definition enums.hpp:260