Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Nmea2kSettings.hpp
Go to the documentation of this file.
1
2#ifndef IV_SRC_MODEL_COMMS_NMEA2KSETTINGS_HPP_
3#define IV_SRC_MODEL_COMMS_NMEA2KSETTINGS_HPP_
4
5#include "core/types.hpp"
7
9{
10
12{
13 Settings();
14 Settings(const Settings &other);
15 Settings(Settings &&other) noexcept;
17
18 Settings &operator=(const Settings &other);
19 Settings &operator=(Settings &&other) noexcept;
20
21 bool load(const iv::file::xml::node &node);
22 bool save(iv::file::xml::node &node) const;
24
25private:
26 struct Keys
27 {
28 static constexpr std::string_view timeOutWait {"TimeOutWait"};
29 };
30
32 {
33 static constexpr uint32_t timeOutWait {1000};
34 };
35};
36}// namespace iv::model::comms::nmea2k
37#endif//IV_SRC_MODEL_COMMS_NMEA2KSETTINGS_HPP_
Definition xmlFile.hpp:15
Definition Nmea2kSettings.cpp:3
std::chrono::milliseconds pollTime
Definition types.hpp:44
static constexpr uint32_t timeOutWait
Definition Nmea2kSettings.hpp:33
Definition Nmea2kSettings.hpp:27
static constexpr std::string_view timeOutWait
Definition Nmea2kSettings.hpp:28
Definition Nmea2kSettings.hpp:12
bool save(iv::file::xml::node &node) const
Definition Nmea2kSettings.cpp:45
iv::types::pollTime timeOutWait
Definition Nmea2kSettings.hpp:23
Settings & operator=(const Settings &other)
Definition Nmea2kSettings.cpp:19
Settings()
Definition Nmea2kSettings.cpp:4
bool load(const iv::file::xml::node &node)
Definition Nmea2kSettings.cpp:39