VLink  2.0.0
A high-performance communication middleware
vlink::QosProfile 命名空间参考

Pre-built Qos constants for common autonomy and embedded workloads. 更多...

函数

VLINK_EXPORT const std::unordered_map< std::string, Qos > & get_available_qos_map () noexcept
 Returns the name-to-Qos lookup table containing every profile in this namespace. 更多...
 

详细描述

Pre-built Qos constants for common autonomy and embedded workloads.

Every constant in this namespace carries valid = true and is safe to pass directly to any VLink endpoint or to register with a transport. Pick the closest profile for your traffic and customise a copy if you need finer control.

参见
Qos, get_available_qos_map()

函数说明

◆ get_available_qos_map()

VLINK_EXPORT const std::unordered_map<std::string, Qos>& vlink::QosProfile::get_available_qos_map ( )
noexcept

Returns the name-to-Qos lookup table containing every profile in this namespace.

The map is keyed by profile name (e.g. "sensor", "event") and is safe to read concurrently from any thread once initialised.

返回
Constant reference to the global unordered_map<string, Qos>.