Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
IpSettings.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MODEL_COMMS_IPSETTINGS_HPP_
2#define IV_SRC_MODEL_COMMS_IPSETTINGS_HPP_
3
4#include "core/types.hpp"
6
8{
9
11{
12 Tcp ,
13 Udp
14};
15
17{
18 IpSettings();
20 IpSettings(const IpSettings &other);
21 IpSettings(IpSettings &&other) noexcept;
23
24 IpSettings &operator=(const IpSettings &other);
25 IpSettings &operator=(IpSettings &&other) noexcept;
26
27 bool load(const iv::file::xml::node &node);
28 bool save(iv::file::xml::node &node) const;
29
33
34private:
35 struct Keys
36 {
37 static constexpr std::string_view socketType {"SocketType"};
38 static constexpr std::string_view socketIpAddress {"IpAddress"};
39 static constexpr std::string_view socketPort {"Port"};
40 };
41
43 {
44 static constexpr std::string string {};
45 };
46};
47
48}// namespace iv::model::comms::net
49
50#endif//IV_SRC_MODEL_COMMS_IPSETTINGS_HPP_
Definition xmlFile.hpp:15
Definition IpSettings.cpp:8
eIpProtocolLayer
Definition IpSettings.hpp:11
uint16_t ipPort
Definition types.hpp:41
std::string ipAddress
Definition types.hpp:40
Definition IpSettings.hpp:36
static constexpr std::string_view socketType
Definition IpSettings.hpp:37
static constexpr std::string_view socketIpAddress
Definition IpSettings.hpp:38
static constexpr std::string_view socketPort
Definition IpSettings.hpp:39
Definition IpSettings.hpp:17
iv::types::ipAddress _ip
Definition IpSettings.hpp:31
IpSettings()
Definition IpSettings.cpp:10
iv::model::comms::net::eIpProtocolLayer _protocolLayer
Definition IpSettings.hpp:30
bool save(iv::file::xml::node &node) const
Definition IpSettings.cpp:63
iv::types::ipPort _port
Definition IpSettings.hpp:32
bool load(const iv::file::xml::node &node)
Definition IpSettings.cpp:53
IpSettings & operator=(const IpSettings &other)
Definition IpSettings.cpp:29
IpSettings(const IpSettings &other)