Function novatel_gps_driver::ParseUInt16(const std::string&, uint16_t&, int32_t)

Function Documentation

bool novatel_gps_driver::ParseUInt16(const std::string &string, uint16_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.