Function novatel_gps_driver::ParseInt16(const std::string&, int16_t&, int32_t)
Defined in File parsing_utils.h
Function Documentation
-
bool novatel_gps_driver::ParseInt16(const std::string &string, int16_t &value, int32_t base = 10)
Parses a string containing an integer number into an int16_t.
- Parameters:
string – The string to read, i.e. “5”
value – An int16_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.