Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
EnumDataFlowParameter.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_CHANNELS_ENUMDATAFLOWPARAMETER_HPP_
2#define IV_SRC_CHANNELS_ENUMDATAFLOWPARAMETER_HPP_
3
5#include "core/enums.hpp"
6
7#include <cstdint>
8#include <memory>
9#include <set>
10#include <string>
11
12namespace iv::channels
13{
14
15class AbstractChannel;
16
18{
19public:
20 enum class eParameterJ1939
21 {
22 Type,
23 Pgn,
25 Spn,
28 };
29
30 static std::string getJ1939ParameterName(eParameterJ1939 param, bool shortName = true);
31 static std::string getJ1939ParameterColumnName(eParameterJ1939 param);
32 static uint16_t getJ1939ParameterColumnWidth(eParameterJ1939 param);
33 static uint16_t getJ1939ParameterMaxChars(eParameterJ1939 param);
34 static std::string getJ1939ParameterValueAsString(const std::shared_ptr<INetworkInfo> &networkInfo,
36
50
51 static std::string getModbusParameterName(eParameterModbus param, bool shortName = true);
53 static uint16_t getModbusParameterMaxChars(eParameterModbus param);
54 static std::string getModbusParameterValueAsString(const std::shared_ptr<iv::channels::INetworkInfo> &networkInfo,
55 const std::shared_ptr<iv::channels::AbstractChannel> &channel,
56 iv::eLanguage language, eParameterModbus param);
57 static std::set<iv::comms::modbus::eRegisterType>
59 static std::set<iv::eDataType> getModbusDataTypesForRegisterType(iv::comms::modbus::eRegisterType modbusType);
60
62 {
64 Header,
67 };
68
69 static std::string getNmea0183ParameterName(eParameterNmea0183 param, bool shortName = true);
72 static std::string getNmea0183ParameterValueAsString(const std::shared_ptr<iv::channels::INetworkInfo> &networkInfo,
73 const std::shared_ptr<iv::channels::AbstractChannel> &channel,
74 iv::eLanguage language, eParameterNmea0183 param);
75
76 enum class eParameterVdr
77 {
79 id
80 };
81
82 static std::string getVdrParameterName(eParameterVdr param, bool shortName = true);
83 static uint16_t getVdrParameterMaxChars(eParameterVdr param);
84 static uint16_t getVdrParameterColumnWidth(eParameterVdr param);
85 static std::string getVdrParameterValueAsString(const std::shared_ptr<iv::channels::INetworkInfo> &networkInfo,
86 const std::shared_ptr<iv::channels::AbstractChannel> &channel,
87 iv::eLanguage language, eParameterVdr param);
88
90 {
91 Pgn,
96 };
97
98 static std::string getNmea2kParameterColumnName(eParameterNmea2k param);
99 static std::string getNmea2kParameterName(eParameterNmea2k param, bool shortName = true);
100 static uint16_t getNmea2kParameterMaxChars(eParameterNmea2k param);
101 static uint16_t getNmea2kParameterColumnWidth(eParameterNmea2k param);
102 static std::string getNmea2kParameterValueAsString(const std::shared_ptr<iv::channels::INetworkInfo> &networkInfo,
103 eParameterNmea2k param);
104};
105
106}// namespace iv::channels
107
108#endif//IV_SRC_CHANNELS_ENUMDATAFLOWPARAMETER_HPP_
Definition EnumDataFlowParameter.hpp:18
static std::string getJ1939ParameterColumnName(eParameterJ1939 param)
Get the name of the parameter for the J1939 network to display in the column.
Definition EnumDataFlowParameter.cpp:51
eParameterModbus
Definition EnumDataFlowParameter.hpp:38
static std::string getNmea2kParameterColumnName(eParameterNmea2k param)
Definition EnumDataFlowParameter.cpp:574
static std::string getNmea2kParameterName(eParameterNmea2k param, bool shortName=true)
Definition EnumDataFlowParameter.cpp:591
static uint16_t getNmea0183ParameterColumnWidth(eParameterNmea0183 param)
Get the width of the column in DataFlow's sheet for the NMEA0183 network.
Definition EnumDataFlowParameter.cpp:455
static std::string getVdrParameterValueAsString(const std::shared_ptr< iv::channels::INetworkInfo > &networkInfo, const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::eLanguage language, eParameterVdr param)
Definition EnumDataFlowParameter.cpp:555
static std::set< iv::eDataType > getModbusDataTypesForRegisterType(iv::comms::modbus::eRegisterType modbusType)
Get the data types for the register type of the Modbus network.
Definition EnumDataFlowParameter.cpp:381
static std::string getNmea0183ParameterName(eParameterNmea0183 param, bool shortName=true)
Get the name of the parameter for the NMEA0183 network.
Definition EnumDataFlowParameter.cpp:404
static std::string getModbusParameterName(eParameterModbus param, bool shortName=true)
Get the name of the parameter for the Modbus network.
Definition EnumDataFlowParameter.cpp:204
eParameterNmea2k
Definition EnumDataFlowParameter.hpp:90
static uint16_t getVdrParameterMaxChars(eParameterVdr param)
Definition EnumDataFlowParameter.cpp:526
static std::string getNmea0183ParameterValueAsString(const std::shared_ptr< iv::channels::INetworkInfo > &networkInfo, const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::eLanguage language, eParameterNmea0183 param)
Get the value for the parameter of the NMEA0183 network as a string.
Definition EnumDataFlowParameter.cpp:484
static uint16_t getVdrParameterColumnWidth(eParameterVdr param)
Definition EnumDataFlowParameter.cpp:540
static uint16_t getModbusParameterMaxChars(eParameterModbus param)
Get the width of the column in DataFlow's sheet for the Modbus network.
Definition EnumDataFlowParameter.cpp:239
eParameterVdr
Definition EnumDataFlowParameter.hpp:77
static std::string getJ1939ParameterName(eParameterJ1939 param, bool shortName=true)
Get the name of the parameter for the J1939 network.
Definition EnumDataFlowParameter.cpp:19
static std::string getModbusParameterValueAsString(const std::shared_ptr< iv::channels::INetworkInfo > &networkInfo, const std::shared_ptr< iv::channels::AbstractChannel > &channel, iv::eLanguage language, eParameterModbus param)
Get the value for the parameter of the Modbus network as a string.
Definition EnumDataFlowParameter.cpp:306
static std::string getVdrParameterName(eParameterVdr param, bool shortName=true)
Definition EnumDataFlowParameter.cpp:512
static uint16_t getModbusParameterColumnWidth(eParameterModbus param)
Get the width of the column in DataFlow's sheet for the Modbus network.
Definition EnumDataFlowParameter.cpp:273
static std::string getNmea2kParameterValueAsString(const std::shared_ptr< iv::channels::INetworkInfo > &networkInfo, eParameterNmea2k param)
Definition EnumDataFlowParameter.cpp:653
static std::set< iv::comms::modbus::eRegisterType > getModbusRegisterTypesForDirection(iv::channels::INetworkInfo::eDirection modbusRegisterDirection)
Get the register types for the direction of the Modbus network.
Definition EnumDataFlowParameter.cpp:357
static uint16_t getNmea2kParameterColumnWidth(eParameterNmea2k param)
Definition EnumDataFlowParameter.cpp:633
static std::string getJ1939ParameterValueAsString(const std::shared_ptr< INetworkInfo > &networkInfo, iv::channels::EnumDataFlowParameter::eParameterJ1939 param)
Get the value for the parameter of the J1939 network as a string.
Definition EnumDataFlowParameter.cpp:130
static uint16_t getNmea0183ParameterMaxChars(eParameterNmea0183 param)
Get the name of the parameter for the NMEA0183 network to display in the column.
Definition EnumDataFlowParameter.cpp:428
eParameterNmea0183
Definition EnumDataFlowParameter.hpp:62
eParameterJ1939
Definition EnumDataFlowParameter.hpp:21
static uint16_t getNmea2kParameterMaxChars(eParameterNmea2k param)
Definition EnumDataFlowParameter.cpp:614
static uint16_t getJ1939ParameterColumnWidth(eParameterJ1939 param)
Get the width of the column in DataFlow's sheet for the J1939 network.
Definition EnumDataFlowParameter.cpp:74
static uint16_t getJ1939ParameterMaxChars(eParameterJ1939 param)
Get the maximum number of characters for the parameter for the J1939 network.
Definition EnumDataFlowParameter.cpp:102
eDirection
Definition NetworkInfo.hpp:21
Definition AlarmsManager.hpp:17
eRegisterType
Definition enums.hpp:315
eLanguage
Definition enums.hpp:37