Function rmw_fastrtps_shared_cpp::find_and_check_topic_and_type

Function Documentation

bool rmw_fastrtps_shared_cpp::find_and_check_topic_and_type(const CustomParticipantInfo *participant_info, const std::string &topic_name, const std::string &type_name, eprosima::fastdds::dds::TopicDescription **returned_topic, eprosima::fastdds::dds::TypeSupport *returned_type)

Tries to find already registered topic and type.

Parameters:
  • participant_info[in] CustomParticipantInfo associated to the context.

  • topic_name[in] Name of the topic for the entity being created.

  • type_name[in] Name of the type for the entity being created.

  • returned_topic[out] TopicDescription for topic_name

  • returned_type[out] TypeSupport for type_name

Returns:

false if topic_name was previously created with a different type name.

Returns:

true when there is no such conflict. Returned topic and type may be null if they were not previously registered on the participant.