Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
Nmea0183Settings.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_MODEL_COMMS_NMEA0183SETTINGS_HPP_
2#define IV_SRC_MODEL_COMMS_NMEA0183SETTINGS_HPP_
3
4#include "core/types.hpp"
6
8{
9
11{
12 Settings();
13 Settings(const iv::types::pollTime &timeoutWait, const iv::types::pollTime &timeoutRetry,
14 const iv::types::pollTime &timeReadingPerFrame);
15 Settings(const Settings &other);
16 Settings(Settings &&other) noexcept;
18
19 Settings &operator=(const Settings &other);
20 Settings &operator=(Settings &&other) noexcept;
21
22 bool load(const iv::file::xml::node &node);
23 bool save(iv::file::xml::node &node) const;
24
28
29private:
30 struct Keys
31 {
32 static constexpr std::string_view nmea0183TimeoutWait {"TimeoutWait"};
33 static constexpr std::string_view nmea0183TimeoutRetry {"TimeoutRetry"};
34 static constexpr std::string_view nmea0183TimeReadingPerFrame {"TimeReadingPerFrame"};
35 };
36};
37
38}// namespace iv::model::comms::nmea0183
39
40#endif//IV_SRC_MODEL_COMMS_NMEA0183SETTINGS_HPP_
Definition xmlFile.hpp:15
Definition Nmea0183Settings.cpp:4
std::chrono::milliseconds pollTime
Definition types.hpp:44
Definition Nmea0183Settings.hpp:31
static constexpr std::string_view nmea0183TimeoutRetry
Definition Nmea0183Settings.hpp:33
static constexpr std::string_view nmea0183TimeReadingPerFrame
Definition Nmea0183Settings.hpp:34
static constexpr std::string_view nmea0183TimeoutWait
Definition Nmea0183Settings.hpp:32
Definition Nmea0183Settings.hpp:11
iv::types::pollTime _timeoutWait
Definition Nmea0183Settings.hpp:25
bool save(iv::file::xml::node &node) const
Definition Nmea0183Settings.cpp:59
iv::types::pollTime _timeoutRetry
Definition Nmea0183Settings.hpp:26
Settings()
Definition Nmea0183Settings.cpp:6
iv::types::pollTime _timeReadingPerFrame
Definition Nmea0183Settings.hpp:27
bool load(const iv::file::xml::node &node)
Definition Nmea0183Settings.cpp:50
Settings & operator=(const Settings &other)
Definition Nmea0183Settings.cpp:26
Settings(const Settings &other)