12export namespace teseo {
35 teseo() : single_line_parser_() {}
105 static bool parse_multiline_reply(std::span<std::string> strings,
const std::string s,
unsigned int&
count,
const nmea_rr& command);
114 void write(
const std::string& s);
123 void read(std::string& s);
133 bool ask_nmea(
const nmea_rr& command, std::string& s);
144 bool ask_nmea_multiple(
const nmea_rr& command, std::span<std::string> strings,
unsigned int&
count);
153 bool ask_gll(std::string& s);
163 bool ask_gsv(std::span<std::string> strings,
unsigned int&
count);
173 bool ask_gsa(std::span<std::string> strings,
unsigned int&
count);
182 bool ask_rmc(std::string& s);
191 bool ask_gga(std::string& s);
200 bool ask_vtg(std::string& s);
223 std::array<std::string,2> single_line_parser_;
callbackmanager::Callback< void, const std::string & > & writer()
expose the callback manager for writing to Teseo.
callbackmanager::Callback< void, std::string & > & reader()
expose the callback manager for reading from Teseo
callbackmanager::Callback< void > & resetter()
expose the callback manager for resetting the Teseo
void read(::std::string &s)
void write(const ::std::string &s)
Struct holds combinations of NMEA commands and their reply signature validation string.
const std::string command
const std::string signature
nmea_rr(const std::string &command, const std::string &signature)