Function etsi_its_cpm_ts_msgs::access::addSensorInformationToContainer
Defined in File cpm_ts_setters.h
Function Documentation
-
inline void etsi_its_cpm_ts_msgs::access::addSensorInformationToContainer(WrappedCpmContainer &container, const SensorInformation &sensor_information)
Adds a SensorInformation to the SensorInformationContainer / WrappedCpmContainer.
This function checks if the provided container is a SensorInformationContainer. If it is, the function adds the given SensorInformation to the container’s sensor_information array. If the container is not a SensorInformationContainer, the function throws an std::invalid_argument exception. If the maximum number of SensorInformation entries is reached, it throws an exception. If the sensor_id or sensor_type is out of range, it throws an exception.
- Parameters:
container – The WrappedCpmContainer to which the SensorInformation will be added.
sensor_information – The SensorInformation to add to the container.
- Throws:
std::invalid_argument – if the container is not a SensorInformationContainer.
std::invalid_argument – if the maximum number of SensorInformation entries is reached.
std::invalid_argument – if the sensor_id or sensor_type is out of range.