12export namespace teseo {
17using nmea_rr =
const std::pair<const std::string, const std::string>;
32 teseo() : single_line_parser_() {}
102 static bool parse_multiline_reply(std::span<std::string> strings,
const std::string s,
unsigned int&
count,
const nmea_rr& command);
111 void write(
const std::string& s);
120 void read(std::string& s);
130 bool ask_nmea(
const nmea_rr& command, std::string& s);
141 bool ask_nmea_multiple(
const nmea_rr& command, std::span<std::string> strings,
unsigned int&
count);
150 bool ask_gll(std::string& s);
160 bool ask_gsv(std::span<std::string> strings,
unsigned int&
count);
170 bool ask_gsa(std::span<std::string> strings,
unsigned int&
count);
179 bool ask_rmc(std::string& s);
188 bool ask_gga(std::string& s);
197 bool ask_vtg(std::string& s);
220 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)
const std::pair< const std::string, const std::string > nmea_rr