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;
219 return (this->
Pid == b.
Pid) &&
278#define PARAMETER_KEY_HASH_LENGTH 16
327#define PARAMETER_LOCATOR_LENGTH 24
367 const fastcdr::string_255& strin)
380 return string_.c_str();
401 return string_.size();
407 fastcdr::string_255 string_;
460#define PARAMETER_PORT_LENGTH 4
526#define PARAMETER_GUID_LENGTH 16
563#define PARAMETER_DOMAINID_LENGTH 4
599#define PARAMETER_PROTOCOL_LENGTH 4
615 :
vendorId(fastdds::rtps::c_VendorId_eProsima)
629 ,
vendorId(fastdds::rtps::c_VendorId_eProsima)
635#define PARAMETER_VENDOR_LENGTH 4
668#define PARAMETER_PRODUCT_VERSION_LENGTH 4
724#define PARAMETER_IP4_LENGTH 4
776#define PARAMETER_BOOL_LENGTH 4
828#define PARAMETER_STATUS_INFO_LENGTH 4
864#define PARAMETER_COUNT_LENGTH 4
900#define PARAMETER_ENTITYID_LENGTH 4
934#define PARAMETER_TIME_LENGTH 8
970#define PARAMETER_BUILTINENDPOINTSET_LENGTH 4
1006#define PARAMETER_NETWORKCONFIGSET_LENGTH 4
1050 return std::string((
char*)data + 4);
1061 uint32_t size1 = ParameterProperty_t::element_size(data);
1064 return std::string((
char*)data + size1 + 4);
1074 const std::pair<std::string, std::string>& new_value)
1076 uint32_t old_size =
size();
1078 uint32_t first_size = (uint32_t)new_value.first.size() + 1;
1079 uint32_t first_alignment = ((first_size + 3u) & ~3u) - first_size;
1080 uint32_t second_size = (uint32_t)new_value.second.size() + 1;
1081 uint32_t second_alignment = ((second_size + 3u) & ~3u) - second_size;
1082 uint32_t new_size = first_size + first_alignment + second_size + second_alignment + 8;
1084 if (old_size != new_size)
1090 memcpy(current, &first_size, 4);
1091 memcpy(current + 4, new_value.first.c_str(), first_size);
1092 memset(current + 4 + first_size, 0, first_alignment);
1094 current = data + 4 + first_size + first_alignment;
1095 memcpy(current, &second_size, 4);
1096 memcpy(current + 4, new_value.second.c_str(), second_size);
1097 memset(current + 4 + second_size, 0, second_alignment);
1107 std::pair<const std::string, const std::string>
pair()
const
1109 return std::make_pair(std::string(
first()), std::string(
second()));
1120 uint32_t size1 = ParameterProperty_t::element_size(data);
1123 uint32_t size2 = ParameterProperty_t::element_size(data + size1);
1124 return size1 + size2;
1137 return !(*
this == b);
1148 static uint32_t element_size(
1152 uint32_t
size = *(uint32_t*)ptr;
1153 return (4u + ((
size + 3u) & ~3u));
1231 uint32_t Nproperties_ = 0;
1233 bool limit_size_ =
false;
1287 return ptr_ == rhs.ptr_;
1293 return ptr_ != rhs.ptr_;
1303 ptr_ += value_.
size();
1344 , value_(const_cast<fastdds::rtps::octet*>(ptr))
1375 return ptr_ == rhs.ptr_;
1381 return ptr_ != rhs.ptr_;
1391 ptr_ += value_.
size();
1422 , limit_size_ (false)
1436 , limit_size_ (
size == 0 ? false : true)
1451 , limit_size_ (false)
1453 static_cast<void>(pid);
1464 , properties_(parameter_properties.limit_size_ ?
1465 parameter_properties.properties_.
max_size :
1466 parameter_properties.properties_.
length)
1467 , Nproperties_ (parameter_properties.Nproperties_)
1468 , limit_size_ (parameter_properties.limit_size_)
1470 properties_.
copy(¶meter_properties.properties_, parameter_properties.limit_size_);
1477 limit_size_ = parameter_properties.limit_size_;
1478 properties_.
reserve(limit_size_ ?
1479 parameter_properties.properties_.
max_size :
1480 parameter_properties.properties_.
length);
1481 properties_.
copy(¶meter_properties.properties_, parameter_properties.limit_size_);
1482 Nproperties_ = parameter_properties.Nproperties_;
1533 std::pair<std::string, std::string> p)
1546 const std::string& key,
1547 const std::string& value)
1549 auto str1 =
reinterpret_cast<const unsigned char*
>(key.c_str());
1550 uint32_t size1 = (uint32_t) key.length() + 1;
1551 auto str2 =
reinterpret_cast<const unsigned char*
>(value.c_str());
1552 uint32_t size2 = (uint32_t) value.length() + 1;
1554 return push_back(str1, size1, str2, size2);
1567 const unsigned char* str1,
1569 const unsigned char* str2,
1573 uint32_t alignment1 = ((str1_size + 3u) & ~3u) - str1_size;
1574 uint32_t alignment2 = ((str2_size + 3u) & ~3u) - str2_size;
1577 str1_size + alignment1 + 4 +
1578 str2_size + alignment2 + 4))
1583 str1_size + alignment1 + 4 +
1584 str2_size + alignment2 + 4);
1601 const std::pair<std::string, std::string>& new_value)
1603 return pos->
modify(new_value);
1622 return Nproperties_;
1642 return (limit_size_ ? properties_.
max_size : 0);
1653 memcpy(properties_.
data + properties_.
length, o, 4);
1659 for (uint32_t i = 0; i < alignment; ++i)
1661 properties_.
data[properties_.
length + i] =
'\0';
1663 properties_.
length += alignment;
1683 :
sample_id(fastdds::rtps::SampleIdentity::unknown())
1697 ,
sample_id(fastdds::rtps::SampleIdentity::unknown())
1723#define PARAMETER_SAMPLEIDENTITY_LENGTH 24
1731class ParameterToken_t :
public Parameter_t
1736 fastdds::rtps::Token token;
1754 : Parameter_t(pid, in_length)
1761#define PARAMETER_PARTICIPANT_SECURITY_INFO_LENGTH 8
1766class ParameterParticipantSecurityInfo_t :
public Parameter_t
1771 fastdds::rtps::security::ParticipantSecurityAttributesMask security_attributes = 0;
1773 fastdds::rtps::security::PluginParticipantSecurityAttributesMask plugin_security_attributes = 0;
1780 ParameterParticipantSecurityInfo_t()
1791 ParameterParticipantSecurityInfo_t(
1801#define PARAMETER_ENDPOINT_SECURITY_INFO_LENGTH 8
1806class ParameterEndpointSecurityInfo_t :
public Parameter_t
1810 fastdds::rtps::security::EndpointSecurityAttributesMask security_attributes = 0;
1811 fastdds::rtps::security::PluginEndpointSecurityAttributesMask plugin_security_attributes = 0;
1818 ParameterEndpointSecurityInfo_t()
1829 ParameterEndpointSecurityInfo_t(
1842template<
class T,
class PL>
1849 if (p == T::unknown())
1855 std::pair<std::string, std::string> pair;
1858 std::ostringstream data;
1860 pair.second = data.str();
1863 auto it = std::find_if(
1866 [&pair](
const typename PL::const_iterator::reference p)
1868 return pair.first == p.first();
1871 if (it != properties.end())
1874 properties.set_property(it, pair);
1879 properties.push_back(pair.first, pair.second);
1883template<
class T,
class PL>
1885 const char*
const PID,
1890 auto it = std::find_if(
1893 [PID](
const typename PL::const_iterator::reference p)
1895 return PID == p.first();
1898 if (it != properties.end())
1900 std::istringstream in(it->second());
1933using ParameterToken_t = fastdds::dds::ParameterToken_t;
1934using ParameterParticipantSecurityInfo_t = fastdds::dds::ParameterParticipantSecurityInfo_t;
1935using ParameterEndpointSecurityInfo_t = fastdds::dds::ParameterEndpointSecurityInfo_t;
Base Parameter class with parameter PID and parameter length in bytes.
Definition ParameterTypes.hpp:183
ParameterId_t Pid
Parameter ID. By default, PID_PAD.
Definition ParameterTypes.hpp:226
FASTDDS_EXPORTED_API Parameter_t()
Constructor without parameters.
Definition ParameterTypes.hpp:189
uint16_t length
Parameter length. By default, 0.
Definition ParameterTypes.hpp:228
FASTDDS_EXPORTED_API Parameter_t(ParameterId_t pid, uint16_t length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:201
virtual FASTDDS_EXPORTED_API ~Parameter_t()
Destructor.
Definition ParameterTypes.hpp:212
bool operator==(const Parameter_t &b) const
Definition ParameterTypes.hpp:216
Definition ParameterTypes.hpp:730
bool value
Boolean By default, false.
Definition ParameterTypes.hpp:734
ParameterBool_t()
Constructor without parameter.
Definition ParameterTypes.hpp:739
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:765
ParameterBool_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:750
Definition ParameterTypes.hpp:940
ParameterBuiltinEndpointSet_t()
Constructor without parameters.
Definition ParameterTypes.hpp:949
ParameterBuiltinEndpointSet_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:960
fastdds::rtps::BuiltinEndpointSet_t endpointSet
Builtin Endpoint Set By default, 0.
Definition ParameterTypes.hpp:944
Definition ParameterTypes.hpp:834
ParameterCount_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:854
fastdds::rtps::Count_t count
Count By default, 0.
Definition ParameterTypes.hpp:838
ParameterCount_t()
Constructor without parameter.
Definition ParameterTypes.hpp:843
Definition ParameterTypes.hpp:532
uint32_t domain_id
Domain ID. By default, DOMAIN_ID_UNKNOWN.
Definition ParameterTypes.hpp:536
ParameterDomainId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:552
ParameterDomainId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:541
Definition ParameterTypes.hpp:870
ParameterEntityId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:890
ParameterEntityId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:879
fastdds::rtps::EntityId_t entityId
EntityId By default, ENTITYID_UNKNOWN.
Definition ParameterTypes.hpp:874
Definition ParameterTypes.hpp:466
ParameterGuid_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:485
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:515
fastdds::rtps::GUID_t guid
GUID By default, unknown GUID.
Definition ParameterTypes.hpp:470
ParameterGuid_t()
Constructor without parameters.
Definition ParameterTypes.hpp:475
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:499
Definition ParameterTypes.hpp:674
ParameterIP4Address_t()
Constructor without parameters.
Definition ParameterTypes.hpp:683
ParameterIP4Address_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:694
fastdds::rtps::octet address[4]
Address By default [0,0,0,0].
Definition ParameterTypes.hpp:678
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:710
Definition ParameterTypes.hpp:235
ParameterKey_t()
Constructor without parameters.
Definition ParameterTypes.hpp:243
ParameterKey_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:253
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:267
fastdds::rtps::InstanceHandle_t key
Instance Handle. By default, c_InstanceHandle_Unknown.
Definition ParameterTypes.hpp:239
Definition ParameterTypes.hpp:284
ParameterLocator_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:303
rtps::Locator locator
Locator.
Definition ParameterTypes.hpp:288
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:317
ParameterLocator_t()
Constructor without parameters.
Definition ParameterTypes.hpp:293
Definition ParameterTypes.hpp:976
fastdds::rtps::NetworkConfigSet_t netconfigSet
Network Config Set By default, 0.
Definition ParameterTypes.hpp:980
ParameterNetworkConfigSet_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:996
ParameterNetworkConfigSet_t()
Constructor without parameters.
Definition ParameterTypes.hpp:985
Definition ParameterTypes.hpp:414
uint32_t port
Port. By default, 0.
Definition ParameterTypes.hpp:418
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:449
ParameterPort_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:434
ParameterPort_t()
Constructor without parameters.
Definition ParameterTypes.hpp:423
Definition ParameterTypes.hpp:641
ParameterProductVersion_t()
Constructor without parameters.
Definition ParameterTypes.hpp:649
rtps::ProductVersion_t version
Definition ParameterTypes.hpp:644
ParameterProductVersion_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:659
Definition ParameterTypes.hpp:1012
std::string second() const
Getter for the second element in data.
Definition ParameterTypes.hpp:1058
ParameterProperty_t()
Constructor without parameters.
Definition ParameterTypes.hpp:1026
uint32_t size() const
Getter for data size.
Definition ParameterTypes.hpp:1117
bool modify(const std::pair< std::string, std::string > &new_value)
Setter using a pair of strings.
Definition ParameterTypes.hpp:1073
bool operator==(const ParameterProperty_t &b) const
Definition ParameterTypes.hpp:1127
ParameterProperty_t(void *ptr)
Constructor using a pointer.
Definition ParameterTypes.hpp:1036
std::string first() const
Getter for the first element in data.
Definition ParameterTypes.hpp:1047
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:1107
bool operator!=(const ParameterProperty_t &b) const
Definition ParameterTypes.hpp:1134
Definition ParameterTypes.hpp:1326
const fastdds::rtps::octet * address() const
Getter for the pointer.
Definition ParameterTypes.hpp:1400
pointer operator->()
Definition ParameterTypes.hpp:1367
std::forward_iterator_tag iterator_category
Definition ParameterTypes.hpp:1334
self_type operator++()
Definition ParameterTypes.hpp:1348
bool operator==(const self_type &rhs) const
Definition ParameterTypes.hpp:1372
size_t difference_type
Definition ParameterTypes.hpp:1333
bool operator!=(const self_type &rhs) const
Definition ParameterTypes.hpp:1378
reference operator*()
Definition ParameterTypes.hpp:1362
const ParameterProperty_t * pointer
Definition ParameterTypes.hpp:1332
const_iterator(const fastdds::rtps::octet *ptr)
Constructor using a pointer.
Definition ParameterTypes.hpp:1341
void advance()
Shift the pointer to the next value.
Definition ParameterTypes.hpp:1389
const ParameterProperty_t & reference
Definition ParameterTypes.hpp:1331
const ParameterProperty_t value_type
Definition ParameterTypes.hpp:1330
const_iterator self_type
Definition ParameterTypes.hpp:1329
Definition ParameterTypes.hpp:1238
fastdds::rtps::octet * address() const
Getter for the pointer.
Definition ParameterTypes.hpp:1312
pointer operator->()
Definition ParameterTypes.hpp:1279
std::forward_iterator_tag iterator_category
Definition ParameterTypes.hpp:1246
self_type operator++()
Definition ParameterTypes.hpp:1260
bool operator==(const self_type &rhs) const
Definition ParameterTypes.hpp:1284
size_t difference_type
Definition ParameterTypes.hpp:1245
bool operator!=(const self_type &rhs) const
Definition ParameterTypes.hpp:1290
ParameterProperty_t value_type
Definition ParameterTypes.hpp:1242
reference operator*()
Definition ParameterTypes.hpp:1274
iterator self_type
Definition ParameterTypes.hpp:1241
ParameterProperty_t & reference
Definition ParameterTypes.hpp:1243
void advance()
Shift the pointer to the next value.
Definition ParameterTypes.hpp:1301
iterator(fastdds::rtps::octet *ptr)
Constructor using an octet pointer.
Definition ParameterTypes.hpp:1253
ParameterProperty_t * pointer
Definition ParameterTypes.hpp:1244
Definition ParameterTypes.hpp:1225
ParameterPropertyList_t(const ParameterPropertyList_t ¶meter_properties)
Constructor using a Parameter Property List.
Definition ParameterTypes.hpp:1461
const_iterator begin() const
Getter for the first position of the ParameterPropertyList.
Definition ParameterTypes.hpp:1511
bool push_back(std::pair< std::string, std::string > p)
Introduce a new property in the ParameterPropertyList.
Definition ParameterTypes.hpp:1532
ParameterPropertyList_t & operator=(const ParameterPropertyList_t ¶meter_properties)
Definition ParameterTypes.hpp:1473
void push_back_helper(const fastdds::rtps::octet *data, uint32_t size, uint32_t alignment)
Definition ParameterTypes.hpp:1647
uint32_t max_size()
Getter for the maximum size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1640
ParameterPropertyList_t(uint32_t size)
Constructor with a defined maximum size.
Definition ParameterTypes.hpp:1431
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:1599
uint32_t size() const
Getter for the size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1620
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:1566
ParameterPropertyList_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:1446
void set_max_size(uint32_t size)
Setter for the maximum size of the ParameterPropertyList.
Definition ParameterTypes.hpp:1628
bool push_back(const std::string &key, const std::string &value)
Introduce a new property in the ParameterPropertyList.
Definition ParameterTypes.hpp:1545
void clear()
Clears the ParameterPropertyList.
Definition ParameterTypes.hpp:1609
iterator end()
Getter for the end of the ParameterPropertyList.
Definition ParameterTypes.hpp:1501
const_iterator end() const
Getter for the end of the ParameterPropertyList.
Definition ParameterTypes.hpp:1521
iterator begin()
Getter for the first position of the ParameterPropertyList.
Definition ParameterTypes.hpp:1491
ParameterPropertyList_t()
Constructor without parameters Sets PID_PROPERTY_LIST as the PID of the parameter.
Definition ParameterTypes.hpp:1419
Definition ParameterTypes.hpp:569
ParameterProtocolVersion_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:589
fastdds::rtps::ProtocolVersion_t protocolVersion
Protocol Version. By default, c_ProtocolVersion.
Definition ParameterTypes.hpp:573
ParameterProtocolVersion_t()
Constructor without parameters.
Definition ParameterTypes.hpp:578
Definition ParameterTypes.hpp:1673
ParameterSampleIdentity_t()
Constructor without parameters.
Definition ParameterTypes.hpp:1682
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:1693
fastdds::rtps::SampleIdentity sample_id
Sample Identity By default, unknown.
Definition ParameterTypes.hpp:1677
Definition ParameterTypes.hpp:782
ParameterStatusInfo_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:802
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:817
ParameterStatusInfo_t()
Constructor without parameter.
Definition ParameterTypes.hpp:791
uint8_t status
Status By default, 0.
Definition ParameterTypes.hpp:786
Definition ParameterTypes.hpp:334
size_t size() const
Getter for the name size.
Definition ParameterTypes.hpp:399
const char * getName() const
Getter for the name.
Definition ParameterTypes.hpp:378
ParameterString_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:350
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:364
void setName(const char *name)
Setter for the name.
Definition ParameterTypes.hpp:388
ParameterString_t()
Constructor without parameters.
Definition ParameterTypes.hpp:340
Definition ParameterTypes.hpp:906
fastdds::rtps::Time_t time
Time By default, 0.
Definition ParameterTypes.hpp:910
ParameterTime_t()
Constructor without parameters.
Definition ParameterTypes.hpp:915
ParameterTime_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:925
Definition ParameterTypes.hpp:605
ParameterVendorId_t()
Constructor without parameters.
Definition ParameterTypes.hpp:614
fastdds::rtps::VendorId_t vendorId
Vendor Id. By default, c_VendorId_eProsima.
Definition ParameterTypes.hpp:609
ParameterVendorId_t(ParameterId_t pid, uint16_t in_length)
Constructor using a parameter PID and the parameter length.
Definition ParameterTypes.hpp:625
Class Locator_t, uniquely identifies a communication channel for a particular transport.
Definition Locator.hpp:71
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:1170
const char *const parameter_enable_monitor_service
Parameter property value for enabling the monitor service.
Definition ParameterTypes.hpp:1212
const char *const parameter_policy_type_propagation
Parameter property value for configuring type propagation.
Definition ParameterTypes.hpp:1219
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:1163
const std::string parameter_property_ds_version
Parameter property ID for Discovery Server version.
Definition ParameterTypes.hpp:1177
const char *const parameter_policy_physical_data_host
Parameter property value for Host physical data.
Definition ParameterTypes.hpp:1191
const std::string parameter_property_current_ds_version
Parameter property value for Discovery Server version.
Definition ParameterTypes.hpp:1184
const char *const parameter_policy_physical_data_process
Parameter property value for Process physical data.
Definition ParameterTypes.hpp:1205
const char *const parameter_policy_physical_data_user
Parameter property value for User physical data.
Definition ParameterTypes.hpp:1198
@ 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:172
@ PID_PROTOCOL_VERSION
Definition ParameterTypes.hpp:96
@ PID_BUILTIN_ENDPOINT_SET
Definition ParameterTypes.hpp:111
@ PID_PAD
Definition ParameterTypes.hpp:71
@ PID_WRITER_GROUP_INFO
Definition ParameterTypes.hpp:125
@ 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_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:173
@ PID_LIFESPAN
Definition ParameterTypes.hpp:84
@ PID_DISABLE_POSITIVE_ACKS
Definition ParameterTypes.hpp:171
@ PID_TYPE_CONSISTENCY_ENFORCEMENT
Definition ParameterTypes.hpp:145
@ PID_CUSTOM_RELATED_SAMPLE_IDENTITY
Definition ParameterTypes.hpp:174
@ PID_OWNERSHIP_STRENGTH
Definition ParameterTypes.hpp:89
@ 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_PRODUCT_VERSION
Definition ParameterTypes.hpp:169
@ PID_ENDPOINT_SECURITY_INFO
Definition ParameterTypes.hpp:154
@ 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_PERMISSIONS_TOKEN
Definition ParameterTypes.hpp:150
@ PID_DATA_REPRESENTATION
Definition ParameterTypes.hpp:144
@ PID_TYPE_NAME
Definition ParameterTypes.hpp:75
Definition DomainParticipant.hpp:45
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:1843
T get_proxy_property(const char *const PID, PL &properties)
Definition ParameterTypes.hpp:1884
uint32_t PluginEndpointSecurityAttributesMask
Definition EndpointSecurityAttributes.hpp:28
uint32_t EndpointSecurityAttributesMask
Definition EndpointSecurityAttributes.hpp:63
uint32_t BuiltinEndpointSet_t
Definition Types.hpp:87
unsigned char octet
Definition Types.hpp:83
uint32_t Count_t
Definition Types.hpp:89
const ProtocolVersion_t c_ProtocolVersion
Definition Types.hpp:159
fastdds::dds::Parameter_t Parameter_t
Definition ParameterTypes.hpp:1912
eprosima::fastdds::rtps::VendorId_t VendorId_t
Structure VendorId_t, specifying the vendor Id of the implementation.
Definition Types.hpp:163
void iHandle2GUID(GUID_t &guid, const InstanceHandle_t &ihandle) noexcept
Convert InstanceHandle_t to GUID.
Definition InstanceHandle.hpp:249
uint32_t NetworkConfigSet_t
Definition Types.hpp:88
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
octet * data
Pointer to the data.
Definition SerializedPayload.hpp:68
bool copy(const SerializedPayload_t *serData, bool with_limit=true)
Copy another structure (including allocating new space for the data).
uint32_t max_size
Maximum size of the payload.
Definition SerializedPayload.hpp:70
void reserve(uint32_t new_size)
uint32_t length
Actual length of the data.
Definition SerializedPayload.hpp:66