Class PropertyPolicyHelper

Class Documentation

class PropertyPolicyHelper

Public Static Functions

static RTPS_DllAPI 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.

Parameters:
  • property_policyPropertyPolicy where properties will be searched.

  • prefix – Prefix used to search properties.

Returns:

A copy of properties whose name starts with the prefix.

static RTPS_DllAPI size_t length (const PropertyPolicy &property_policy)

Get the length of the property_policy.

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

Look for a property_policy by name.

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

Retrieves a property_policy by name.

static RTPS_DllAPI const Property * get_property (const PropertyPolicy &property_policy, const std::string &name)

Retrieves a property by name.

Parameters:
  • property_policyPropertyPolicy where the property will be searched.

  • name – Name of the property to be searched.

Returns:

A pointer to the property if found, nullptr otherwise.