Class UserData

Inheritance Relationships

Base Type

Class Documentation

class UserData : public dds::core::Value<detail::UserData>

Public Functions

UserData()

Creates a UserData QoS instance with an empty UserData

explicit UserData(const dds::core::ByteSeq &sequence)

Creates a UserData QoS instance

Parameters:

sequence – the sequence of octets

UserData(const uint8_t *value_begin, const uint8_t *value_end)

Creates a UserData QoS instance

Parameters:
  • value_begin – a pointer to the beginning of a sequence of octets

  • value_end – a pointer to the end of a sequence of octets

UserData(const UserData &other)

Copies a UserData QoS instance

Parameters:

other – the UserData QoS instance to copy

UserData &value(const dds::core::ByteSeq &sequence)

Sets the sequence

Parameters:

sequence – a sequence of octets

template<typename OCTET_ITER>
UserData &value(OCTET_ITER begin, OCTET_ITER end)

Sets the sequence

Parameters:
  • begin – an iterator pointing to the beginning of a sequence of octets

  • end – an iterator pointing to the end of a sequence of octets

const dds::core::ByteSeq value() const

Gets the sequence

Returns:

a sequence of octets

const uint8_t *begin() const

Gets a pointer to the first octet in the sequence

Returns:

a pointer to the first octet in the sequence

const uint8_t *end() const

Gets a pointer to the last octet in the sequence

Returns:

a pointer to the first octet in the sequence