19.1.5.1. Topic

class fastdds.Topic(*args, **kwargs)

Class Topic, represents the fact that both publications and subscriptions are tied to a single data-type

get_impl()
get_listener()

Retrieves the attached TopicListener.

Return type

TopicListener

Returns

pointer to TopicListener

get_participant()

Getter for the DomainParticipant

Return type

DomainParticipant

Returns

DomainParticipant pointer

get_qos(*args)

Overload 1:

Allows accessing the Topic Qos.

Return type

TopicQos

Returns

reference to TopicQos


Overload 2:

Retrieves the Topic Qos.

Parameters

qos (TopicQos) – TopicQos where the qos is returned

Return type

ReturnCode_t

Returns

RETCODE_OK

set_listener(*args)

Modifies the TopicListener.

Parameters
  • listener (TopicListener) – new value for the TopicListener

  • mask (StatusMask) – StatusMask that holds statuses the listener responds to (default: all).

Return type

ReturnCode_t

Returns

RETCODE_OK

set_qos(qos)

Allows modifying the Topic Qos. The given Qos must be supported by the Topic.

Parameters

qos (TopicQos) – new TopicQos value to set for the Topic.

property thisown

The membership flag