Template Function ublox_node::checkRange(V, T, T, const std::string&)

Function Documentation

template<typename V, typename T>
void ublox_node::checkRange(V val, T min, T max, const std::string &name)

Check that the parameter is in the range.

Parameters:
  • val – the value to check

  • min – the minimum for this value

  • max – the maximum for this value

  • name – the name of the parameter

Throws:

std::runtime_error – if it is out of bounds