Function etsi_its_cpm_ts_msgs::access::getCpmContainer

Function Documentation

inline WrappedCpmContainer etsi_its_cpm_ts_msgs::access::getCpmContainer(const CollectivePerceptionMessage &cpm, const uint8_t container_id)

Retrieves the CpmContainer with the specified container ID from the CPM.

Parameters:
  • cpm – The CPM from which to retrieve the CpmContainer.

  • container_id – The ID of the CpmContainer to retrieve.

Throws:

std::invalid_argument – if no CpmContainer with the specified ID is found in the CPM.

Returns:

The CpmContainer with the specified container ID.