Function etsi_its_cpm_ts_msgs::access::setSensorType
Defined in File cpm_ts_setters.h
Function Documentation
-
inline void etsi_its_cpm_ts_msgs::access::setSensorType(SensorInformation &sensor_information, const uint8_t sensor_type = SensorType::UNDEFINED)
Sets the sensorType of a SensorInformation object.
This function sets the sensorType of a SensorInformation object. The sensorType is limited to the range defined by SensorType::MIN and SensorType::MAX.
- Parameters:
sensor_information – The SensorInformation object to set the sensorType for.
sensor_type – The sensorType to set (default: SensorType::UNDEFINED).
- Throws:
std::invalid_argument – if the sensor_type is out of range.