EncoderContext¶
struct nmeasim::core::nmea0183::EncoderContext ยท Library API
Everything an encoder needs to produce its sentences for one emission.
#include <nmeasim/core/nmea0183/encoders.hpp>
Declared in src/core/include/nmeasim/core/nmea0183/encoders.hpp (line 48)
The context refers to the state and the talker without owning them; both must outlive the encoder call.
Summary¶
Public data members
| Name | Description |
|---|---|
state |
The vessel state to encode, owned by the caller; encoders only read it. |
talker |
Two-character talker identifier, such as GP, already resolved from the profile or the registry default; sent as given. |
options |
Formatting options, possibly lowered by encode_within_limit(). |
Public data members¶
state¶
const model::VesselState& state
The vessel state to encode, owned by the caller; encoders only read it.
Declared in src/core/include/nmeasim/core/nmea0183/encoders.hpp:50
talker¶
std::string_view talker
Two-character talker identifier, such as GP, already resolved from the profile or the registry default; sent as given.
Declared in src/core/include/nmeasim/core/nmea0183/encoders.hpp:53
options¶
EncoderOptions options{}
Formatting options, possibly lowered by encode_within_limit().
Declared in src/core/include/nmeasim/core/nmea0183/encoders.hpp:55