17.2.1.10. PropertyPolicyHelper

class eprosima::fastrtps::rtps::PropertyPolicyHelper

Public Static Functions

PropertyPolicy get_properties_with_prefix(const PropertyPolicy &property_policy, const std::string &prefix)

Returns only the properties whose name starts with the prefix.

Prefix is removed in returned properties.

Return

A copy of properties whose name starts with the prefix.

Parameters
  • property_policy: PropertyPolicy where properties will be searched.

  • prefix: Prefix used to search properties.

size_t length(const PropertyPolicy &property_policy)

Get the length of the property_policy.

std::string *find_property(PropertyPolicy &property_policy, const std::string &name)

Look for a property_policy by name.

const std::string *find_property(const PropertyPolicy &property_policy, const std::string &name)

Retrieves a property_policy by name.