18#ifndef FASTDDS_RTPS_ATTRIBUTES__PROPERTYPOLICY_HPP
19#define FASTDDS_RTPS_ATTRIBUTES__PROPERTYPOLICY_HPP
21#include <fastdds/rtps/common/Property.hpp>
22#include <fastdds/rtps/common/BinaryProperty.hpp>
23#include <fastdds/fastdds_dll.hpp>
39 : properties_(property_policy.properties_)
40 , binary_properties_(property_policy.binary_properties_)
46 : properties_(
std::move(property_policy.properties_))
47 , binary_properties_(
std::move(property_policy.binary_properties_))
54 properties_ = property_policy.properties_;
55 binary_properties_ = property_policy.binary_properties_;
62 properties_ = std::move(property_policy.properties_);
63 binary_properties_ = std::move(property_policy.binary_properties_);
70 return (this->properties_ == b.properties_) &&
71 (this->binary_properties_ == b.binary_properties_);
95 return binary_properties_;
101 return binary_properties_;
124 const std::string& prefix);
127 FASTDDS_EXPORTED_API
static size_t length(
133 const std::string& name);
138 const std::string& name);
148 const std::string& name);
Definition Property.hpp:31
Definition PropertyPolicy.hpp:112
static FASTDDS_EXPORTED_API std::string * find_property(PropertyPolicy &property_policy, const std::string &name)
Look for a property_policy by name.
static FASTDDS_EXPORTED_API const std::string * find_property(const PropertyPolicy &property_policy, const std::string &name)
Retrieves a property_policy by name.
static FASTDDS_EXPORTED_API const Property * get_property(const PropertyPolicy &property_policy, const std::string &name)
Retrieves a property by name.
static FASTDDS_EXPORTED_API size_t length(const PropertyPolicy &property_policy)
Get the length of the property_policy.
static FASTDDS_EXPORTED_API PropertyPolicy get_properties_with_prefix(const PropertyPolicy &property_policy, const std::string &prefix)
Returns only the properties whose name starts with the prefix.
Definition PropertyPolicy.hpp:30
FASTDDS_EXPORTED_API const PropertySeq & properties() const
Get properties.
Definition PropertyPolicy.hpp:81
FASTDDS_EXPORTED_API PropertyPolicy(PropertyPolicy &&property_policy)
Definition PropertyPolicy.hpp:44
FASTDDS_EXPORTED_API const BinaryPropertySeq & binary_properties() const
Get binary_properties.
Definition PropertyPolicy.hpp:93
FASTDDS_EXPORTED_API bool operator==(const PropertyPolicy &b) const
Definition PropertyPolicy.hpp:67
FASTDDS_EXPORTED_API PropertySeq & properties()
Set properties.
Definition PropertyPolicy.hpp:87
FASTDDS_EXPORTED_API PropertyPolicy(const PropertyPolicy &property_policy)
Definition PropertyPolicy.hpp:37
FASTDDS_EXPORTED_API BinaryPropertySeq & binary_properties()
Set binary_properties.
Definition PropertyPolicy.hpp:99
FASTDDS_EXPORTED_API PropertyPolicy & operator=(const PropertyPolicy &property_policy)
Definition PropertyPolicy.hpp:51
FASTDDS_EXPORTED_API bool operator!=(const PropertyPolicy &b) const
Definition PropertyPolicy.hpp:74
FASTDDS_EXPORTED_API PropertyPolicy()
Definition PropertyPolicy.hpp:33
std::vector< Property > PropertySeq
Definition Property.hpp:168
std::vector< BinaryProperty > BinaryPropertySeq
Definition BinaryProperty.hpp:166
Definition EntityId_t.hpp:388