Built-in topic to find available topics

2 posts / 0 new
Last post
Offline
Last seen: 9 years 3 months ago
Joined: 11/13/2014
Posts: 11
Built-in topic to find available topics

I'm curious to find out if RTI has a built-in topics that help you identify the topics currently avaialble and there associated TypeCodes.  Any help would be much appreciated.

Thanks, Steve

Organization:
Offline
Last seen: 7 months 3 weeks ago
Joined: 05/23/2013
Posts: 64

Hi Steve,

This example would be helpful to understand how to use built-in topics.
https://community.rti.com/examples/builtin-topics

You can get infomration about topics and type codes via the built-in topics. 
Basically, what you need to do is to create a DataReader for built-in topics (which might be participant, publication, or subscription built-in topics depending on what entities you are interested in) and this DataReader will receive samples when endpoints (DataReader or DataWriter) or participants in your systems are created. 

These are the links for the c++ reference describing attibutes of built-in topics:
http://community.rti.com/docs/html/api_cpp/structDDS__PublicationBuiltinTopicData.html
http://community.rti.com/docs/html/api_cpp/structDDS__SubscriptionBuiltinTopicData.html

Thanks,
Kyoungho