![]() |
DUNE: Uniform Navigational Environment
2022.04.1
|
NMEA Sentence reader is a simple NMEA parser capable of validating and converting sentence fields.
Public Member Functions | |
NMEASentence (char start_sym='$') | |
const std::string & | getCode () const |
void | setCode (const std::string &code) |
const std::string & | getField (size_t index) const |
void | setField (size_t index, const std::string &value) |
void | setField (size_t index, const char *fmt,...) |
size_t | getFieldCount () const |
std::string | str () const |
void | clear () |
void | parse (const std::string &text) |
|
inlineexplicit |
References clear().
|
inline |
Clear sentence.
Referenced by NMEASentence().
|
inline |
|
inline |
|
inline |
Retrieve the number of fields currently present in the sentence.
|
inline |
Parse NMEA sentence.
[in] | text | string with NMEA sentence. |
References DUNE::Algorithms::XORChecksum::compute(), DUNE::Utils::String::split(), and DUNE::Utils::String::trim().
|
inline |
|
inline |
Referenced by setField().
|
inline |
References setField(), and DUNE::Utils::String::strVl().
|
inline |
References DUNE::Utils::String::join(), and DUNE::Utils::String::str().