Function rmw_fastrtps_cpp::get_datareader

Function Documentation

eprosima::fastdds::dds::DataReader *rmw_fastrtps_cpp::get_datareader(rmw_subscription_t *subscription)

Return a native Fast DDS DataReader handle.

The function returns NULL when either the subscription handle is NULL or when the subscription handle is from a different rmw implementation.

Returns:

native Fast DDS DataReader handle if successful, otherwise NULL