Function novatel_gps_driver::ParseUInt8

Function Documentation

bool novatel_gps_driver::ParseUInt8(const std::string &string, uint8_t &value, int32_t base = 10)

Parses a string containing an integer number into a uint16_t.

Parameters:
  • string – The string to read, i.e. “5”

  • value – A uint16_t representing the value from the strong.

  • base – The numerical base of the integer in the string.

Returns:

False if the format of the string was not recognized.