19#ifndef FASTDDS_DDS_CORE_POLICY__PARAMETERTYPES_HPP
20#define FASTDDS_DDS_CORE_POLICY__PARAMETERTYPES_HPP
22#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
28#include <fastcdr/cdr/fixed_size_string.hpp>
30#include <fastdds/dds/core/Types.hpp>
31#include <fastdds/rtps/common/InstanceHandle.hpp>
32#include <fastdds/rtps/common/Locator.hpp>
33#include <fastdds/rtps/common/ProductVersion_t.hpp>
34#include <fastdds/rtps/common/SampleIdentity.hpp>
35#include <fastdds/rtps/common/SerializedPayload.hpp>
36#include <fastdds/rtps/common/Time_t.hpp>
37#include <fastdds/rtps/common/Token.hpp>
40#include <fastdds/rtps/attributes/EndpointSecurityAttributes.hpp>
49struct ParticipantSecurityAttributes;
52typedef uint32_t PluginParticipantSecurityAttributesMask;
53typedef uint32_t ParticipantSecurityAttributesMask;
234 return (this->
Pid == b.
Pid) &&
293#define PARAMETER_KEY_HASH_LENGTH 16
342#define PARAMETER_LOCATOR_LENGTH 24
382 const fastcdr::string_255& strin)
395 return string_.c_str();
416 return string_.size();
422 fastcdr::string_255 string_;
475#define PARAMETER_PORT_LENGTH 4
541#define PARAMETER_GUID_LENGTH 16
578#define PARAMETER_DOMAINID_LENGTH 4
614#define PARAMETER_PROTOCOL_LENGTH 4
650#define PARAMETER_VENDOR_LENGTH 4
683#define PARAMETER_PRODUCT_VERSION_LENGTH 4
739#define PARAMETER_IP4_LENGTH 4
791#define PARAMETER_BOOL_LENGTH 4
843#define PARAMETER_STATUS_INFO_LENGTH 4
879#define PARAMETER_COUNT_LENGTH 4
915#define PARAMETER_ENTITYID_LENGTH 4
949#define PARAMETER_TIME_LENGTH 8
985#define PARAMETER_BUILTINENDPOINTSET_LENGTH 4
1021#define PARAMETER_NETWORKCONFIGSET_LENGTH 4
1065 return std::string((
char*)data + 4);
1076 uint32_t size1 = ParameterProperty_t::element_size(data);
1079 return std::string((
char*)data + size1 + 4);
1089 const std::pair<std::string, std::string>& new_value)
1091 uint32_t old_size =
size();
1093 uint32_t first_size = (uint32_t)new_value.first.size() + 1;
1094 uint32_t first_alignment = ((first_size + 3u) & ~3u) - first_size;
1095 uint32_t second_size = (uint32_t)new_value.second.size() + 1;
1096 uint32_t second_alignment = ((second_size + 3u) & ~3u) - second_size;
1097 uint32_t new_size = first_size + first_alignment + second_size + second_alignment + 8;
1099 if (old_size != new_size)
1105 memcpy(current, &first_size, 4);
1106 memcpy(current + 4, new_value.first.c_str(), first_size);
1107 memset(current + 4 + first_size, 0, first_alignment);
1109 current = data + 4 + first_size + first_alignment;
1110 memcpy(current, &second_size, 4);
1111 memcpy(current + 4, new_value.second.c_str(), second_size);
1112 memset(current + 4 + second_size, 0, second_alignment);
1122 std::pair<const std::string, const std::string>
pair()
const
1124 return std::make_pair(std::string(
first()), std::string(
second()));
1135 uint32_t size1 = ParameterProperty_t::element_size(data);
1138 uint32_t size2 = ParameterProperty_t::element_size(data + size1);
1139 return size1 + size2;
1152 return !(*
this == b);
1163 static uint32_t element_size(
1167 uint32_t
size = *(uint32_t*)ptr;
1168 return (4u + ((
size + 3u) & ~3u));
1253 uint32_t Nproperties_ = 0;
1255 bool limit_size_ =
false;
1309 return ptr_ == rhs.ptr_;
1315 return ptr_ != rhs.ptr_;
1325 ptr_ += value_.size();
1397 return ptr_ == rhs.ptr_;
1403 return ptr_ != rhs.ptr_;
1413 ptr_ += value_.size();
1444 , limit_size_ (false)
1458 , limit_size_ (
size == 0 ? false : true)
1473 , limit_size_ (false)
1475 static_cast<void>(pid);
1486 , properties_(parameter_properties.limit_size_ ?
1487 parameter_properties.properties_.
max_size :
1488 parameter_properties.properties_.
length)
1489 , Nproperties_ (parameter_properties.Nproperties_)
1490 , limit_size_ (parameter_properties.limit_size_)
1492 properties_.copy(¶meter_properties.properties_, parameter_properties.limit_size_);
1499 limit_size_ = parameter_properties.limit_size_;
1500 properties_.reserve(limit_size_ ?
1501 parameter_properties.properties_.
max_size :
1502 parameter_properties.properties_.
length);
1503 properties_.copy(¶meter_properties.properties_, parameter_properties.limit_size_);
1504 Nproperties_ = parameter_properties.Nproperties_;
1525 return iterator(properties_.data + properties_.length);
1555 std::pair<std::string, std::string> p)
1568 const std::string& key,
1569 const std::string& value)
1571 auto str1 =
reinterpret_cast<const unsigned char*
>(key.c_str());
1572 uint32_t size1 = (uint32_t) key.length() + 1;
1573 auto str2 =
reinterpret_cast<const unsigned char*
>(value.c_str());
1574 uint32_t size2 = (uint32_t) value.length() + 1;
1576 return push_back(str1, size1, str2, size2);
1589 const unsigned char* str1,
1591 const unsigned char* str2,
1595 uint32_t alignment1 = ((str1_size + 3u) & ~3u) - str1_size;
1596 uint32_t alignment2 = ((str2_size + 3u) & ~3u) - str2_size;
1598 if (limit_size_ && (properties_.max_size < properties_.length +
1599 str1_size + alignment1 + 4 +
1600 str2_size + alignment2 + 4))
1604 properties_.reserve(properties_.length +
1605 str1_size + alignment1 + 4 +
1606 str2_size + alignment2 + 4);
1623 const std::pair<std::string, std::string>& new_value)
1625 return pos->
modify(new_value);
1633 properties_.length = 0;
1644 return Nproperties_;
1653 properties_.reserve(
size);
1664 return (limit_size_ ? properties_.max_size : 0);
1675 memcpy(properties_.data + properties_.length, o, 4);
1676 properties_.length += 4;
1678 memcpy(properties_.data + properties_.length, data,
size);
1679 properties_.length +=
size;
1681 for (uint32_t i = 0; i < alignment; ++i)
1683 properties_.data[properties_.length + i] =
'\0';
1685 properties_.length += alignment;
1745#define PARAMETER_SAMPLEIDENTITY_LENGTH 24
1753class ParameterToken_t :
public Parameter_t
1758 fastdds::rtps::Token token;
1776 : Parameter_t(pid, in_length)
1783#define PARAMETER_PARTICIPANT_SECURITY_INFO_LENGTH 8
1788class ParameterParticipantSecurityInfo_t :
public Parameter_t
1793 fastdds::rtps::security::ParticipantSecurityAttributesMask security_attributes = 0;
1795 fastdds::rtps::security::PluginParticipantSecurityAttributesMask plugin_security_attributes = 0;
1802 ParameterParticipantSecurityInfo_t()
1813 ParameterParticipantSecurityInfo_t(
1823#define PARAMETER_ENDPOINT_SECURITY_INFO_LENGTH 8
1828class ParameterEndpointSecurityInfo_t :
public Parameter_t
1832 fastdds::rtps::security::EndpointSecurityAttributesMask security_attributes = 0;
1833 fastdds::rtps::security::PluginEndpointSecurityAttributesMask plugin_security_attributes = 0;
1840 ParameterEndpointSecurityInfo_t()
1851 ParameterEndpointSecurityInfo_t(
1864template<
class T,
class PL>
1871 if (p == T::unknown())
1877 std::pair<std::string, std::string> pair;
1880 std::ostringstream data;
1882 pair.second = data.str();
1885 auto it = std::find_if(
1888 [&pair](
const typename PL::const_iterator::reference p)
1890 return pair.first == p.first();
1893 if (it != properties.end())
1896 properties.set_property(it, pair);
1901 properties.push_back(pair.first, pair.second);
1905template<
class T,
class PL>
1907 const char*
const PID,
1912 auto it = std::find_if(
1915 [PID](
const typename PL::const_iterator::reference p)
1917 return PID == p.first();
1920 if (it != properties.end())
1922 std::istringstream in(it->second());
1955using ParameterToken_t = fastdds::dds::ParameterToken_t;
1956using ParameterParticipantSecurityInfo_t = fastdds::dds::ParameterParticipantSecurityInfo_t;
1957using ParameterEndpointSecurityInfo_t = fastdds::dds::ParameterEndpointSecurityInfo_t;
Base Parameter class with parameter PID and parameter length in bytes.
Definition ParameterTypes.hpp:198
ParameterId_t Pid
Parameter ID. By default, PID_PAD.
Definition ParameterTypes.hpp:241
FASTDDS_EXPORTED_API Parameter_t()
Constructor without parameters.
Definition ParameterTypes.hpp:204
uint16_t length
Parameter length. By default, 0.
Definition ParameterTypes.hpp:243
FASTDDS_EXPORTED_API Parameter_t(ParameterId_t pid, uint16_t length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:216
virtual FASTDDS_EXPORTED_API ~Parameter_t()
Destructor.
Definition ParameterTypes.hpp:227
bool operator==(const Parameter_t &b) const
Definition ParameterTypes.hpp:231
Definition ParameterTypes.hpp:745
bool value
Boolean By default, false.
Definition ParameterTypes.hpp:749
ParameterBool_t()
Constructor without parameter.
Definition ParameterTypes.hpp:754
ParameterBool_t(ParameterId_t pid, uint16_t in_length, bool inbool)
Constructor using a parameter PID, the parameter length and a boolean.
Definition ParameterTypes.hpp:780
ParameterBool_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:765
Definition ParameterTypes.hpp:955
ParameterBuiltinEndpointSet_t()
Constructor without parameters.
Definition ParameterTypes.hpp:964
ParameterBuiltinEndpointSet_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:975
fastdds::rtps::BuiltinEndpointSet_t endpointSet
Builtin Endpoint Set By default, 0.
Definition ParameterTypes.hpp:959
Definition ParameterTypes.hpp:849
ParameterCount_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:869
fastdds::rtps::Count_t count
Count By default, 0.
Definition ParameterTypes.hpp:853
ParameterCount_t()
Constructor without parameter.
Definition ParameterTypes.hpp:858
Definition ParameterTypes.hpp:547
uint32_t domain_id
Domain ID. By default, DOMAIN_ID_UNKNOWN.
Definition ParameterTypes.hpp:551
ParameterDomainId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:567
ParameterDomainId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:556
Definition ParameterTypes.hpp:885
ParameterEntityId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:905
ParameterEntityId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:894
fastdds::rtps::EntityId_t entityId
EntityId By default, ENTITYID_UNKNOWN.
Definition ParameterTypes.hpp:889
Definition ParameterTypes.hpp:481
ParameterGuid_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:500
ParameterGuid_t(ParameterId_t pid, uint16_t in_length, const fastdds::rtps::InstanceHandle_t &iH)
Constructor using a parameter PID, the parameter length and a Instance Handle.
Definition ParameterTypes.hpp:530
fastdds::rtps::GUID_t guid
GUID By default, unknown GUID.
Definition ParameterTypes.hpp:485
ParameterGuid_t()
Constructor without parameters.
Definition ParameterTypes.hpp:490
ParameterGuid_t(ParameterId_t pid, uint16_t in_length, const fastdds::rtps::GUID_t &guidin)
Constructor using a parameter PID, the parameter length and a GUID.
Definition ParameterTypes.hpp:514
Definition ParameterTypes.hpp:689
ParameterIP4Address_t()
Constructor without parameters.
Definition ParameterTypes.hpp:698
ParameterIP4Address_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:709
fastdds::rtps::octet address[4]
Address By default [0,0,0,0].
Definition ParameterTypes.hpp:693
void setIP4Address(fastdds::rtps::octet o1, fastdds::rtps::octet o2, fastdds::rtps::octet o3, fastdds::rtps::octet o4)
Setter for the address.
Definition ParameterTypes.hpp:725
Definition ParameterTypes.hpp:250
ParameterKey_t()
Constructor without parameters.
Definition ParameterTypes.hpp:258
ParameterKey_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:268
ParameterKey_t(ParameterId_t pid, uint16_t in_length, const fastdds::rtps::InstanceHandle_t &ke)
Constructor using a parameter PID, parameter length and Instance Handle.
Definition ParameterTypes.hpp:282
fastdds::rtps::InstanceHandle_t key
Instance Handle. By default, c_InstanceHandle_Unknown.
Definition ParameterTypes.hpp:254
Definition ParameterTypes.hpp:299
ParameterLocator_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:318
rtps::Locator locator
Locator.
Definition ParameterTypes.hpp:303
ParameterLocator_t(ParameterId_t pid, uint16_t in_length, const rtps::Locator &loc)
Constructor using a parameter PID, the parameter length and a Locator.
Definition ParameterTypes.hpp:332
ParameterLocator_t()
Constructor without parameters.
Definition ParameterTypes.hpp:308
Definition ParameterTypes.hpp:991
fastdds::rtps::NetworkConfigSet_t netconfigSet
Network Config Set By default, 0.
Definition ParameterTypes.hpp:995
ParameterNetworkConfigSet_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:1011
ParameterNetworkConfigSet_t()
Constructor without parameters.
Definition ParameterTypes.hpp:1000
Definition ParameterTypes.hpp:429
uint32_t port
Port. By default, 0.
Definition ParameterTypes.hpp:433
ParameterPort_t(ParameterId_t pid, uint16_t in_length, uint32_t po)
Constructor using a parameter PID, the parameter length and a port.
Definition ParameterTypes.hpp:464
ParameterPort_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:449
ParameterPort_t()
Constructor without parameters.
Definition ParameterTypes.hpp:438
Definition ParameterTypes.hpp:656
ParameterProductVersion_t()
Constructor without parameters.
Definition ParameterTypes.hpp:664
rtps::ProductVersion_t version
Definition ParameterTypes.hpp:659
ParameterProductVersion_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:674
Definition ParameterTypes.hpp:1027
std::string second() const
Getter for the second element in data.
Definition ParameterTypes.hpp:1073
ParameterProperty_t()
Constructor without parameters.
Definition ParameterTypes.hpp:1041
uint32_t size() const
Getter for data size.
Definition ParameterTypes.hpp:1132
bool modify(const std::pair< std::string, std::string > &new_value)
Setter using a pair of strings.
Definition ParameterTypes.hpp:1088
bool operator==(const ParameterProperty_t &b) const
Definition ParameterTypes.hpp:1142
friend class ParameterPropertyList_t
Definition ParameterTypes.hpp:1029
ParameterProperty_t(void *ptr)
Constructor using a pointer.
Definition ParameterTypes.hpp:1051
std::string first() const
Getter for the first element in data.
Definition ParameterTypes.hpp:1062
std::pair< const std::string, const std::string > pair() const
Getter that returns a pair of the first and second elements in data.
Definition ParameterTypes.hpp:1122
bool operator!=(const ParameterProperty_t &b) const
Definition ParameterTypes.hpp:1149
Definition ParameterTypes.hpp:1348
const fastdds::rtps::octet * address() const
Getter for the pointer.
Definition ParameterTypes.hpp:1422
pointer operator->()
Definition ParameterTypes.hpp:1389
size_t difference_type
Definition ParameterTypes.hpp:1355
self_type operator++()
Definition ParameterTypes.hpp:1370
bool operator==(const self_type &rhs) const
Definition ParameterTypes.hpp:1394
std::forward_iterator_tag iterator_category
Definition ParameterTypes.hpp:1356
bool operator!=(const self_type &rhs) const
Definition ParameterTypes.hpp:1400
reference operator*()
Definition ParameterTypes.hpp:1384
const_iterator self_type
Definition ParameterTypes.hpp:1351
const_iterator(const fastdds::rtps::octet *ptr)
Constructor using a pointer.
Definition ParameterTypes.hpp:1363
void advance()
Shift the pointer to the next value.
Definition ParameterTypes.hpp:1411
const ParameterProperty_t * pointer
Definition ParameterTypes.hpp:1354
const ParameterProperty_t value_type
Definition ParameterTypes.hpp:1352
const ParameterProperty_t & reference
Definition ParameterTypes.hpp:1353
Definition ParameterTypes.hpp:1260
fastdds::rtps::octet * address() const
Getter for the pointer.
Definition ParameterTypes.hpp:1334
ParameterProperty_t value_type
Definition ParameterTypes.hpp:1264
pointer operator->()
Definition ParameterTypes.hpp:1301
size_t difference_type
Definition ParameterTypes.hpp:1267
self_type operator++()
Definition ParameterTypes.hpp:1282
bool operator==(const self_type &rhs) const
Definition ParameterTypes.hpp:1306
std::forward_iterator_tag iterator_category
Definition ParameterTypes.hpp:1268
ParameterProperty_t * pointer
Definition ParameterTypes.hpp:1266
bool operator!=(const self_type &rhs) const
Definition ParameterTypes.hpp:1312
reference operator*()
Definition ParameterTypes.hpp:1296
void advance()
Shift the pointer to the next value.
Definition ParameterTypes.hpp:1323
ParameterProperty_t & reference
Definition ParameterTypes.hpp:1265
iterator(fastdds::rtps::octet *ptr)
Constructor using an octet pointer.
Definition ParameterTypes.hpp:1275
iterator self_type
Definition ParameterTypes.hpp:1263
Definition ParameterTypes.hpp:1247
ParameterPropertyList_t(const ParameterPropertyList_t ¶meter_properties)
Constructor using a Parameter Property List.
Definition ParameterTypes.hpp:1483
const_iterator begin() const
Getter for the first position of the ParameterPropertyList.
Definition ParameterTypes.hpp:1533
bool push_back(std::pair< std::string, std::string > p)
Introduce a new property in the ParameterPropertyList.
Definition ParameterTypes.hpp:1554
ParameterPropertyList_t & operator=(const ParameterPropertyList_t ¶meter_properties)
Definition ParameterTypes.hpp:1495
void push_back_helper(const fastdds::rtps::octet *data, uint32_t size, uint32_t alignment)
Definition ParameterTypes.hpp:1669
uint32_t max_size()
Getter for the maximum size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1662
ParameterPropertyList_t(uint32_t size)
Constructor with a defined maximum size.
Definition ParameterTypes.hpp:1453
bool set_property(iterator pos, const std::pair< std::string, std::string > &new_value)
Setter of a new property value on a specific position.
Definition ParameterTypes.hpp:1621
uint32_t size() const
Getter for the size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1642
bool push_back(const unsigned char *str1, uint32_t str1_size, const unsigned char *str2, uint32_t str2_size)
Introduce a new property in the ParameterPropertyList.
Definition ParameterTypes.hpp:1588
ParameterPropertyList_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:1468
void set_max_size(uint32_t size)
Setter for the maximum size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1650
bool push_back(const std::string &key, const std::string &value)
Introduce a new property in the ParameterPropertyList.
Definition ParameterTypes.hpp:1567
void clear()
Clears the ParameterPropertyList.
Definition ParameterTypes.hpp:1631
iterator end()
Getter for the end of the ParameterPropertyList.
Definition ParameterTypes.hpp:1523
const_iterator end() const
Getter for the end of the ParameterPropertyList.
Definition ParameterTypes.hpp:1543
iterator begin()
Getter for the first position of the ParameterPropertyList.
Definition ParameterTypes.hpp:1513
ParameterPropertyList_t()
Constructor without parameters Sets PID_PROPERTY_LIST as the PID of the parameter.
Definition ParameterTypes.hpp:1441
Definition ParameterTypes.hpp:584
ParameterProtocolVersion_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:604
fastdds::rtps::ProtocolVersion_t protocolVersion
Protocol Version. By default, c_ProtocolVersion.
Definition ParameterTypes.hpp:588
ParameterProtocolVersion_t()
Constructor without parameters.
Definition ParameterTypes.hpp:593
Definition ParameterTypes.hpp:1695
ParameterSampleIdentity_t()
Constructor without parameters.
Definition ParameterTypes.hpp:1704
bool addToCDRMessage(fastdds::rtps::CDRMessage_t *msg) const
Add the parameter to a CDRMessage_t message.
bool readFromCDRMessage(fastdds::rtps::CDRMessage_t *msg, uint16_t size)
Read the parameter from a CDRMessage_t message.
ParameterSampleIdentity_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:1715
fastdds::rtps::SampleIdentity sample_id
Sample Identity By default, unknown.
Definition ParameterTypes.hpp:1699
Definition ParameterTypes.hpp:797
ParameterStatusInfo_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:817
ParameterStatusInfo_t(ParameterId_t pid, uint16_t in_length, uint8_t instatus)
Constructor using a parameter PID, the parameter length and status value.
Definition ParameterTypes.hpp:832
ParameterStatusInfo_t()
Constructor without parameter.
Definition ParameterTypes.hpp:806
uint8_t status
Status By default, 0.
Definition ParameterTypes.hpp:801
Definition ParameterTypes.hpp:349
size_t size() const
Getter for the name size.
Definition ParameterTypes.hpp:414
const char * getName() const
Getter for the name.
Definition ParameterTypes.hpp:393
ParameterString_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:365
ParameterString_t(ParameterId_t pid, uint16_t in_length, const fastcdr::string_255 &strin)
Constructor using a parameter PID, the parameter length and a string.
Definition ParameterTypes.hpp:379
void setName(const char *name)
Setter for the name.
Definition ParameterTypes.hpp:403
ParameterString_t()
Constructor without parameters.
Definition ParameterTypes.hpp:355
Definition ParameterTypes.hpp:921
fastdds::rtps::Time_t time
Time By default, 0.
Definition ParameterTypes.hpp:925
ParameterTime_t()
Constructor without parameters.
Definition ParameterTypes.hpp:930
ParameterTime_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:940
Definition ParameterTypes.hpp:620
ParameterVendorId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:629
fastdds::rtps::VendorId_t vendorId
Vendor Id. By default, c_VendorId_eProsima.
Definition ParameterTypes.hpp:624
ParameterVendorId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:640
This class is used to specify a sample.
Definition SampleIdentity.hpp:34
Structure Time_t, used to describe times at RTPS protocol.
Definition Time_t.hpp:38
const std::string parameter_property_participant_type
Parameter property ID for participant type.
Definition ParameterTypes.hpp:1185
const char *const parameter_enable_monitor_service
Parameter property value for enabling the monitor service.
Definition ParameterTypes.hpp:1227
const char *const parameter_policy_type_propagation
Parameter property value for configuring type propagation.
Definition ParameterTypes.hpp:1234
ParameterId_t
Enum for the unique parameter identifier.
Definition ParameterTypes.hpp:69
const std::string parameter_property_persistence_guid
Parameter property ID for persistence GUID.
Definition ParameterTypes.hpp:1178
const std::string parameter_property_ds_version
Parameter property ID for Discovery Server version.
Definition ParameterTypes.hpp:1192
const char *const parameter_policy_physical_data_host
Parameter property value for Host physical data.
Definition ParameterTypes.hpp:1206
const std::string parameter_property_current_ds_version
Parameter property value for Discovery Server version.
Definition ParameterTypes.hpp:1199
const char *const parameter_policy_physical_data_process
Parameter property value for Process physical data.
Definition ParameterTypes.hpp:1220
const char *const parameter_serialize_optional_qos
Parameter property value for configuring serialization of optional QoS in Data(r/w).
Definition ParameterTypes.hpp:1241
const char *const parameter_policy_physical_data_user
Parameter property value for User physical data.
Definition ParameterTypes.hpp:1213
@ PID_TOPIC_NAME
Definition ParameterTypes.hpp:74
@ PID_SENTINEL
Definition ParameterTypes.hpp:72
@ PID_TOPIC_DATA
Definition ParameterTypes.hpp:77
@ PID_GROUP_SEQ_NUM
Definition ParameterTypes.hpp:124
@ PID_PARTICIPANT_MANUAL_LIVELINESS_COUNT
Definition ParameterTypes.hpp:105
@ PID_DURABILITY_SERVICE
Definition ParameterTypes.hpp:79
@ PID_UNICAST_LOCATOR
Definition ParameterTypes.hpp:98
@ PID_LIVELINESS
Definition ParameterTypes.hpp:82
@ PID_OWNERSHIP
Definition ParameterTypes.hpp:88
@ PID_EXPECTS_INLINE_QOS
Definition ParameterTypes.hpp:104
@ PID_COHERENT_SET
Definition ParameterTypes.hpp:120
@ PID_LATENCY_BUDGET
Definition ParameterTypes.hpp:81
@ PID_RESOURCE_LIMITS
Definition ParameterTypes.hpp:87
@ PID_GROUP_GUID
Definition ParameterTypes.hpp:109
@ PID_TYPE_MAX_SIZE_SERIALIZED
Definition ParameterTypes.hpp:114
@ PID_SERVICE_INSTANCE_NAME
Definition ParameterTypes.hpp:163
@ PID_DATASHARING
Definition ParameterTypes.hpp:173
@ PID_PROTOCOL_VERSION
Definition ParameterTypes.hpp:96
@ PID_RPC_MORE_REPLIES
Definition ParameterTypes.hpp:189
@ PID_READER_DATA_LIFECYCLE
Definition ParameterTypes.hpp:183
@ PID_BUILTIN_ENDPOINT_SET
Definition ParameterTypes.hpp:111
@ PID_PAD
Definition ParameterTypes.hpp:71
@ PID_WRITER_GROUP_INFO
Definition ParameterTypes.hpp:125
@ PID_READER_RESOURCE_LIMITS
Definition ParameterTypes.hpp:185
@ PID_PUBLISH_MODE
Definition ParameterTypes.hpp:179
@ PID_RELIABILITY
Definition ParameterTypes.hpp:83
@ PID_VENDORID
Definition ParameterTypes.hpp:97
@ PID_PARTICIPANT_SECURITY_INFO
Definition ParameterTypes.hpp:151
@ PID_CONTENT_FILTER_INFO
Definition ParameterTypes.hpp:119
@ PID_TOPIC_ALIASES
Definition ParameterTypes.hpp:165
@ PID_DURABILITY
Definition ParameterTypes.hpp:78
@ PID_METATRAFFIC_MULTICAST_LOCATOR
Definition ParameterTypes.hpp:103
@ PID_PROPERTY_LIST
Definition ParameterTypes.hpp:113
@ PID_USER_DATA
Definition ParameterTypes.hpp:73
@ PID_DIRECTED_WRITE
Definition ParameterTypes.hpp:121
@ PID_ORIGINAL_WRITER_INFO
Definition ParameterTypes.hpp:122
@ PID_BUILTIN_ENDPOINT_QOS
Definition ParameterTypes.hpp:112
@ PID_DEFAULT_MULTICAST_LOCATOR
Definition ParameterTypes.hpp:101
@ PID_DEADLINE
Definition ParameterTypes.hpp:80
@ PID_RELATED_ENTITY_GUID
Definition ParameterTypes.hpp:164
@ PID_WRITER_DATA_LIFECYCLE
Definition ParameterTypes.hpp:178
@ PID_TYPE_IDV1
Definition ParameterTypes.hpp:142
@ PID_IDENTITY_TOKEN
Definition ParameterTypes.hpp:149
@ PID_PARTICIPANT_GUID
Definition ParameterTypes.hpp:108
@ PID_TYPE_INFORMATION
Definition ParameterTypes.hpp:146
@ PID_IDENTITY_STATUS_TOKEN
Definition ParameterTypes.hpp:157
@ PID_DESTINATION_ORDER
Definition ParameterTypes.hpp:85
@ PID_MULTICAST_LOCATOR
Definition ParameterTypes.hpp:99
@ PID_GROUP_ENTITYID
Definition ParameterTypes.hpp:110
@ PID_KEY_HASH
Definition ParameterTypes.hpp:127
@ PID_PRESENTATION
Definition ParameterTypes.hpp:90
@ PID_RELATED_SAMPLE_IDENTITY
Definition ParameterTypes.hpp:166
@ PID_NETWORK_CONFIGURATION_SET
Definition ParameterTypes.hpp:174
@ PID_LIFESPAN
Definition ParameterTypes.hpp:84
@ PID_DISABLE_POSITIVE_ACKS
Definition ParameterTypes.hpp:172
@ PID_TYPE_CONSISTENCY_ENFORCEMENT
Definition ParameterTypes.hpp:145
@ PID_RTPS_RELIABLE_WRITER
Definition ParameterTypes.hpp:180
@ PID_CUSTOM_RELATED_SAMPLE_IDENTITY
Definition ParameterTypes.hpp:175
@ PID_OWNERSHIP_STRENGTH
Definition ParameterTypes.hpp:89
@ PID_WRITER_RESOURCE_LIMITS
Definition ParameterTypes.hpp:181
@ PID_ENDPOINT_GUID
Definition ParameterTypes.hpp:116
@ PID_PARTITION
Definition ParameterTypes.hpp:91
@ PID_DATA_TAGS
Definition ParameterTypes.hpp:160
@ PID_ENTITY_NAME
Definition ParameterTypes.hpp:115
@ PID_DEFAULT_UNICAST_LOCATOR
Definition ParameterTypes.hpp:100
@ PID_TRANSPORT_PRIORITY
Definition ParameterTypes.hpp:93
@ PID_METATRAFFIC_UNICAST_LOCATOR
Definition ParameterTypes.hpp:102
@ PID_PARTICIPANT_LEASE_DURATION
Definition ParameterTypes.hpp:106
@ PID_CONTENT_FILTER_PROPERTY
Definition ParameterTypes.hpp:107
@ PID_STATUS_INFO
Definition ParameterTypes.hpp:128
@ PID_TIME_BASED_FILTER
Definition ParameterTypes.hpp:92
@ PID_GROUP_COHERENT_SET
Definition ParameterTypes.hpp:123
@ PID_GROUP_DATA
Definition ParameterTypes.hpp:76
@ PID_WIREPROTOCOL_CONFIG
Definition ParameterTypes.hpp:187
@ PID_PRODUCT_VERSION
Definition ParameterTypes.hpp:169
@ PID_ENDPOINT_SECURITY_INFO
Definition ParameterTypes.hpp:154
@ PID_RTPS_RELIABLE_READER
Definition ParameterTypes.hpp:184
@ PID_RTPS_ENDPOINT
Definition ParameterTypes.hpp:176
@ PID_SECURE_WRITER_GROUP_INFO
Definition ParameterTypes.hpp:126
@ PID_HISTORY
Definition ParameterTypes.hpp:86
@ PID_TYPE_OBJECTV1
Definition ParameterTypes.hpp:143
@ PID_DOMAIN_ID
Definition ParameterTypes.hpp:94
@ PID_PERSISTENCE_GUID
Definition ParameterTypes.hpp:170
@ PID_DOMAIN_TAG
Definition ParameterTypes.hpp:95
@ PID_MACHINE_ID
Definition ParameterTypes.hpp:171
@ PID_PERMISSIONS_TOKEN
Definition ParameterTypes.hpp:150
@ PID_DATA_REPRESENTATION
Definition ParameterTypes.hpp:144
@ PID_TYPE_NAME
Definition ParameterTypes.hpp:75
Definition BuiltinTopicKey.hpp:26
const DomainId_t DOMAIN_ID_UNKNOWN
Definition Types.hpp:26
void set_proxy_property(const T &p, const char *PID, PL &properties)
Definition ParameterTypes.hpp:1865
T get_proxy_property(const char *const PID, PL &properties)
Definition ParameterTypes.hpp:1906
Definition EndpointSecurityAttributes.hpp:26
uint32_t PluginEndpointSecurityAttributesMask
Definition EndpointSecurityAttributes.hpp:28
uint32_t EndpointSecurityAttributesMask
Definition EndpointSecurityAttributes.hpp:63
Contains the RTPS protocol implementation.
uint32_t BuiltinEndpointSet_t
Definition Types.hpp:87
fastdds::dds::ParameterNetworkConfigSet_t ParameterNetworkConfigSet_t
Definition ParameterTypes.hpp:1951
fastdds::dds::ParameterProtocolVersion_t ParameterProtocolVersion_t
Definition ParameterTypes.hpp:1941
unsigned char octet
Definition Types.hpp:83
fastdds::dds::ParameterGuid_t ParameterGuid_t
Definition ParameterTypes.hpp:1939
fastdds::dds::ParameterTime_t ParameterTime_t
Definition ParameterTypes.hpp:1949
fastdds::dds::ParameterIP4Address_t ParameterIP4Address_t
Definition ParameterTypes.hpp:1944
fastdds::dds::ParameterStatusInfo_t ParameterStatusInfo_t
Definition ParameterTypes.hpp:1946
fastdds::dds::ParameterLocator_t ParameterLocator_t
Definition ParameterTypes.hpp:1936
std::array< uint8_t, 2 > VendorId_t
Structure VendorId_t, specifying the vendor Id of the implementation.
Definition VendorId_t.hpp:32
fastdds::dds::ParameterId_t ParameterId_t
Definition ParameterTypes.hpp:1933
fastdds::dds::ParameterDomainId_t ParameterDomainId_t
Definition ParameterTypes.hpp:1940
uint32_t Count_t
Definition Types.hpp:89
fastdds::dds::ParameterBool_t ParameterBool_t
Definition ParameterTypes.hpp:1945
const ProtocolVersion_t c_ProtocolVersion
Definition Types.hpp:159
fastdds::dds::ParameterKey_t ParameterKey_t
Definition ParameterTypes.hpp:1935
fastdds::dds::Parameter_t Parameter_t
Definition ParameterTypes.hpp:1934
fastdds::dds::ParameterProductVersion_t ParameterProductVersion_t
Definition ParameterTypes.hpp:1943
void iHandle2GUID(GUID_t &guid, const InstanceHandle_t &ihandle) noexcept
Convert InstanceHandle_t to GUID.
Definition InstanceHandle.hpp:249
fastdds::dds::ParameterPort_t ParameterPort_t
Definition ParameterTypes.hpp:1938
fastdds::dds::ParameterCount_t ParameterCount_t
Definition ParameterTypes.hpp:1947
uint32_t NetworkConfigSet_t
Definition Types.hpp:88
fastdds::dds::ParameterVendorId_t ParameterVendorId_t
Definition ParameterTypes.hpp:1942
fastdds::dds::ParameterString_t ParameterString_t
Definition ParameterTypes.hpp:1937
fastdds::dds::ParameterBuiltinEndpointSet_t ParameterBuiltinEndpointSet_t
Definition ParameterTypes.hpp:1950
eprosima::fastdds::rtps::Locator_t Locator
Definition Locator.hpp:523
fastdds::dds::ParameterEntityId_t ParameterEntityId_t
Definition ParameterTypes.hpp:1948
fastdds::dds::ParameterSampleIdentity_t ParameterSampleIdentity_t
Definition ParameterTypes.hpp:1953
fastdds::dds::ParameterPropertyList_t ParameterPropertyList_t
Definition ParameterTypes.hpp:1952
Structure CDRMessage_t, contains a serialized message.
Definition CDRMessage_t.hpp:51
Structure EntityId_t, entity id part of GUID_t.
Definition EntityId_t.hpp:77
Structure GUID_t, entity identifier, unique in DDS-RTPS Domain.
Definition Guid.hpp:40
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition InstanceHandle.hpp:154
Definition ProductVersion_t.hpp:31
Structure ProtocolVersion_t, contains the protocol version.
Definition Types.hpp:104
Structure SerializedPayload_t.
Definition SerializedPayload.hpp:59
uint32_t max_size
Maximum size of the payload.
Definition SerializedPayload.hpp:70
uint32_t length
Actual length of the data.
Definition SerializedPayload.hpp:66