RTI Connext Modern C++ API
Version 7.0.0
|
Attaches a buffer of opaque data that is distributed by Built-in Topics during discovery. More...
#include <dds/core/policy/CorePolicy.hpp>
Public Member Functions | |
UserData () | |
Creates an instance with an empty sequence of bytes. More... | |
UserData (const dds::core::ByteSeq &seq) | |
Creates an instance with a sequence of bytes. More... | |
UserData (const uint8_t *value_begin, const uint8_t *value_end) | |
Creates an instance with a sequence of bytes. More... | |
template<typename OctetIter > | |
UserData & | value (OctetIter the_begin, OctetIter the_end) |
Sets the byte sequence. More... | |
const dds::core::ByteSeq | value () const |
Gets the user data. More... | |
dds::core::ByteSeq & | value (dds::core::ByteSeq &dest) const |
Gets the user data. More... | |
const uint8_t * | begin () const |
Gets the beginning of the range of bytes in this UserData. More... | |
const uint8_t * | end () const |
Gets the end of the range of bytes in this UserData. More... | |
Attaches a buffer of opaque data that is distributed by Built-in Topics during discovery.
The purpose of this QoS is to allow the application to attach additional information to the created dds::core::Entity objects, so that when a remote application discovers their existence, it can access that information and use it for its own purposes. This information is not used by RTI Connext.
One possible use of this QoS is to attach security credentials or some other information that can be used by the remote application to authenticate the source.
In combination with operations such as dds::domain::ignore, dds::pub::ignore, dds::sub::ignore, and dds::topic::ignore(), this QoS policy can assist an application to define and enforce its own security policies.
The use of this QoS is not limited to security; it offers a simple, yet flexible extensibility mechanism.
Important: RTI Connext stores the data placed in this policy in pre-allocated pools. It is therefore necessary to configure RTI Connext with the maximum size of the data that will be stored in policies of this type. This size is configured with rti::core::policy::DomainParticipantResourceLimits::participant_user_data_max_length, rti::core::policy::DomainParticipantResourceLimits::writer_user_data_max_length, and rti::core::policy::DomainParticipantResourceLimits::reader_user_data_max_length.
|
inline |
Creates an instance with an empty sequence of bytes.
|
inlineexplicit |
Creates an instance with a sequence of bytes.
seq | A vector containing the bytes to create this UserData |
|
inline |
Creates an instance with a sequence of bytes.
value_begin | Beginning of a range of bytes |
value_end | End of the reange |
|
inline |
Sets the byte sequence.
OctetIter | An input iterator of bytes (convertible to uint8_t). |
the_begin | Beginning of the range |
the_end | End of the range |
|
inline |
Gets the user data.
|
inline |
Gets the user data.
dest | The vector where the bytes will be copied |
dest
|
inline |
Gets the beginning of the range of bytes in this UserData.
|
inline |
Gets the end of the range of bytes in this UserData.