DUNE: Uniform Navigational Environment
2016.09.0
|
NMEA Writer.
Public Member Functions | |
NMEAWriter (const std::string &code) | |
NMEAWriter & | operator<< (const bool &value) |
NMEAWriter & | operator<< (const int &value) |
NMEAWriter & | operator<< (const unsigned &value) |
NMEAWriter & | operator<< (const double &value) |
NMEAWriter & | operator<< (const char *value) |
NMEAWriter & | operator<< (const std::string &value) |
std::string | sentence (void) |
DUNE::Parsers::NMEAWriter::NMEAWriter | ( | const std::string & | code | ) |
Initialize a NMEA sentence of type code.
code | sentence type (without the $, eg. GPGGA) |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const bool & | value | ) |
Append a boolean to the current sentence.
value | boolean to be appended. |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const int & | value | ) |
Append an integer to the current sentence.
value | integer to be appended. |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const unsigned & | value | ) |
Append an unsigned integer to the current sentence.
value | unsigned integer to be appended. |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const double & | value | ) |
Append a double to the current sentence.
value | double to be appended. |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const char * | value | ) |
Append a string value to the current sentence.
value | string to be appended. |
NMEAWriter & DUNE::Parsers::NMEAWriter::operator<< | ( | const std::string & | value | ) |
Append a string value to the current sentence.
value | string to be appended. |
std::string DUNE::Parsers::NMEAWriter::sentence | ( | void | ) |
Retrieve NMEA compliant sentence with checksum and line termination.