topic
-
class cyclonedds.topic.Topic(domain_participant, topic_name, data_type, qos=None, listener=None)[source]
Bases: Entity
, Generic
[_S
]
Representing a Topic
- Parameters:
-
-
get_name(max_size=256)[source]
- Return type:
str
-
property name: str
Get topic name
-
get_type_name(max_size=256)[source]
- Return type:
str
-
property typename: str
Get topic type name
-
set_topic_filter(callable)[source]
Sets a filter and filter argument on a topic.
- Parameters:
callable (filter) – The filter function used to filter topic samples.
topic (Topic) – The topic to set the filter function.
Sample (Sample) – The sample that needs to be checked whether to be filtered.
- Returns:
Whether this sample is filtered.
- Return type:
bool
-
set_c_topic_filter(c_callable)[source]
-
get_inconsistent_topic_status()[source]
Get INCONSISTENT_TOPIC status
- Raises:
DDSException: – If any error code is returned by the DDS API it is converted into an exception.
- Returns:
The class ‘inconsistent_topic_status` value.
- Return type:
inconsistent_topic_status
Styled using the Piccolo Theme