Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
InterfaceSettings.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MODEL_COMMS_INTERFACESETTINGS_HPP_
2#define IV_SRC_MODEL_COMMS_INTERFACESETTINGS_HPP_
3
10
11namespace iv::model::comms
12{
13
15{
18 iv::model::comms::ixxat::UsbDeviceSettings ixxatUsbDeviceSettings_,
26
28 InterfaceSettings &operator=(InterfaceSettings &&other) noexcept = default;
29
30 bool load(const iv::file::xml::node &node);
31 bool save(iv::file::xml::node &node) const;
32
40
41private:
42 struct Keys
43 {
44 static constexpr std::string_view interfaceType {"Type"};
45
46 static constexpr std::string_view socketType {"SocketType"};
47 static constexpr std::string_view socketIpAddress {"IpAddress"};
48 static constexpr std::string_view socketPort {"Port"};
49
50 static constexpr std::string_view ixxatBoardType {"BoardType"};
51 static constexpr std::string_view ixxatHwSerial {"HwSerial"};
52 static constexpr std::string_view ixxatHwPort {"HwPort"};
53 static constexpr std::string_view ixxatBaudRate {"BaudRate"};
54 static constexpr std::string_view ixxatOperationMode {"OperationMode"};
55 static constexpr std::string_view ixxatEnableErrorFrames {"EnableErrorFrames"};
56
57 static constexpr std::string_view socketCanBoardType {"BoardType"};
58 static constexpr std::string_view socketCanDevice {"Device"};
59 static constexpr std::string_view socketCanHwPort {"HwPort"};
60 static constexpr std::string_view socketCanOperationMode {"OperationMode"};
61 static constexpr std::string_view socketCanBusTimingRegister {"BusTimingRegister"};
62
63 static constexpr std::string_view serialPortName {"PortName"};
64 static constexpr std::string_view serialBaudRate {"BaudRate"};
65 static constexpr std::string_view serialDataBits {"DataBits"};
66 static constexpr std::string_view serialParity {"Parity"};
67 static constexpr std::string_view serialStopBits {"StopBits"};
68 static constexpr std::string_view serialFlowControl {"FlowControl"};
69 static constexpr std::string_view serialPollTime {"PollTime"};
70 };
71
73 {
74 static constexpr std::string string {};
75 };
76};
77
78}// namespace iv::model::comms
79
80#endif//IV_SRC_MODEL_COMMS_INTERFACESETTINGS_HPP_
Definition xmlFile.hpp:15
eInterfaceType
Definition enums.hpp:240
Definition ApiSettings.cpp:4
Definition InterfaceSettings.hpp:73
Definition InterfaceSettings.hpp:43
static constexpr std::string_view serialBaudRate
Definition InterfaceSettings.hpp:64
static constexpr std::string_view socketType
Definition InterfaceSettings.hpp:46
static constexpr std::string_view socketCanOperationMode
Definition InterfaceSettings.hpp:60
static constexpr std::string_view serialFlowControl
Definition InterfaceSettings.hpp:68
static constexpr std::string_view socketIpAddress
Definition InterfaceSettings.hpp:47
static constexpr std::string_view ixxatEnableErrorFrames
Definition InterfaceSettings.hpp:55
static constexpr std::string_view serialParity
Definition InterfaceSettings.hpp:66
static constexpr std::string_view serialDataBits
Definition InterfaceSettings.hpp:65
static constexpr std::string_view ixxatBoardType
Definition InterfaceSettings.hpp:50
static constexpr std::string_view interfaceType
Definition InterfaceSettings.hpp:44
static constexpr std::string_view ixxatOperationMode
Definition InterfaceSettings.hpp:54
static constexpr std::string_view socketPort
Definition InterfaceSettings.hpp:48
static constexpr std::string_view socketCanBoardType
Definition InterfaceSettings.hpp:57
static constexpr std::string_view serialPortName
Definition InterfaceSettings.hpp:63
static constexpr std::string_view ixxatBaudRate
Definition InterfaceSettings.hpp:53
static constexpr std::string_view socketCanHwPort
Definition InterfaceSettings.hpp:59
static constexpr std::string_view serialPollTime
Definition InterfaceSettings.hpp:69
static constexpr std::string_view ixxatHwSerial
Definition InterfaceSettings.hpp:51
static constexpr std::string_view socketCanDevice
Definition InterfaceSettings.hpp:58
static constexpr std::string_view socketCanBusTimingRegister
Definition InterfaceSettings.hpp:61
static constexpr std::string_view ixxatHwPort
Definition InterfaceSettings.hpp:52
static constexpr std::string_view serialStopBits
Definition InterfaceSettings.hpp:67
Definition InterfaceSettings.hpp:15
InterfaceSettings()
Definition InterfaceSettings.cpp:8
iv::model::comms::socketcan::UsbDeviceSettings socketCanUsbDeviceSettings
Definition InterfaceSettings.hpp:35
InterfaceSettings & operator=(const InterfaceSettings &other)=default
bool save(iv::file::xml::node &node) const
Definition InterfaceSettings.cpp:67
InterfaceSettings(InterfaceSettings &&other) noexcept
iv::model::comms::socketcan::PCanEthGatewaySettings peakCanEthGatewaySettings
Definition InterfaceSettings.hpp:38
InterfaceSettings(const InterfaceSettings &other)
iv::comms::eInterfaceType interfaceType
Definition InterfaceSettings.hpp:33
iv::model::comms::ixxat::UsbDeviceSettings ixxatUsbDeviceSettings
Definition InterfaceSettings.hpp:34
iv::model::comms::net::IpSettings ipSettings
Definition InterfaceSettings.hpp:37
iv::model::comms::api::Settings apiSettings
Definition InterfaceSettings.hpp:39
bool load(const iv::file::xml::node &node)
Definition InterfaceSettings.cpp:33
iv::model::comms::serial::PortSettings serialPortSettings
Definition InterfaceSettings.hpp:36
InterfaceSettings & operator=(InterfaceSettings &&other) noexcept=default
Definition ApiSettings.hpp:12
Definition IxxatSettings.hpp:43
Definition IpSettings.hpp:17
Definition SerialPortSettings.hpp:92
Definition SocketCanSettings.hpp:79
Definition SocketCanSettings.hpp:42