Hi
It does not seem lookup_datareader() is implemnted in the moderm C++ API (RTI version 5.2.3)
It is mentioned in https://community.rti.com/static/documentation/connext-dds/5.3.0/doc/api/connext_dds/api_cpp2/group__DDSBuiltInTopicModule.html
in the "Detailed description" paragraph. However it is not documented in the subscriber API and it does not seem to be implemented. Is it possible to clarify its implementation status ?
Thanks
Hi Nico,
In Modern C++, you should use the method find_datareader_by_name(). Let me provide you with a snippet:
The output of the cout line is:
Found DataReader's name is: MyReader
. There are more methods to find more entities. If you go to the Modern C++ API website and type "find", the autocompletion will show you the available methods.Please, let me know if this helps.
-Fran
Hi Fran,
Through your example I discovered that I actually needed find_datareader_by_topic_name(). Your explanation was very helpful
Thanks
Nico
Hi. How would this work if one is searching for the presence of a reader on another node?
I have publisher code that needs to wait for a subscriber before it publishes. It can't count subscribers because other things out there might be subscribed, like recorders and the admin console.