Function rmw_qos_durability_policy_from_str
Defined in File qos_string_conversions.h
Function Documentation
-
rmw_qos_durability_policy_t rmw_qos_durability_policy_from_str(const char *str)
Return a enum value based on the provided string.
Returns the enum value based on the provided string, or
RMW_QOS_POLICY_*_UNKNOWN
when the provided string is unexpected.How policy values are stringified is explained in rmw_qos_durability_policy_to_str.
Attribute
Adherence
Allocates Memory
No
Thread-Safe
Yes
Uses Atomics
No
Lock-Free
Yes
- Parameters:
str – [in] string identifying a qos policy value.
- Returns:
the policy value represented by the string, or
- Returns:
RMW_QOS_POLICY_*_UNKNOWN
if the string doesn’t represent any value.