SentenceDescriptor¶
struct nmeasim::core::nmea0183::SentenceDescriptor ยท Library API
Static description of one sentence: its identity, its defaults and the encoder that produces it.
#include <nmeasim/core/nmea0183/registry.hpp>
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp (line 63)
The string views of the descriptors in SentenceRegistry::standard refer to string literals and stay valid for the whole program.
Summary¶
Public data members
| Name | Description |
|---|---|
id |
Unique key used in the profile and on the command line, for example "RMC" or "MWV-T". |
formatter |
Three-character sentence formatter, for example "RMC". |
default_talker |
Two-character talker identifier used unless the profile sets another. |
group |
Functional group the sentence is enabled or disabled with. |
default_period |
Interval between two emissions unless the profile sets another; positive. |
enabled_by_default |
Whether the sentence is sent when the profile does not mention it. |
description |
One-line summary of the sentence contents, shown in the interface and by the command-line tool. |
encoder |
Function that produces the sentences for one emission from a vessel state; never null in the standard registry. |
Public data members¶
id¶
std::string_view id
Unique key used in the profile and on the command line, for example "RMC" or "MWV-T".
It is the formatter, with a suffix when one formatter has several variants.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:68
formatter¶
std::string_view formatter
Three-character sentence formatter, for example "RMC".
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:70
default_talker¶
std::string_view default_talker
Two-character talker identifier used unless the profile sets another.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:72
group¶
SentenceGroup group
Functional group the sentence is enabled or disabled with.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:74
default_period¶
std::chrono::milliseconds default_period
Interval between two emissions unless the profile sets another; positive.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:76
enabled_by_default¶
bool enabled_by_default
Whether the sentence is sent when the profile does not mention it.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:78
description¶
std::string_view description
One-line summary of the sentence contents, shown in the interface and by the command-line tool.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:81
encoder¶
Encoder encoder
Function that produces the sentences for one emission from a vessel state; never null in the standard registry.
Declared in src/core/include/nmeasim/core/nmea0183/registry.hpp:84