Discovering/Listing Generated Types

2 posts / 0 new
Last post
Offline
Last seen: 9 years 2 weeks ago
Joined: 11/07/2014
Posts: 13
Discovering/Listing Generated Types

Is there a way to discover/list "Generated Types" so that they can be instantiated for interrogation purposes?

 

Thanks for any help.

gianpiero's picture
Offline
Last seen: 3 months 1 week ago
Joined: 06/02/2010
Posts: 177

Hello,

I am not sure what do you mean with "Generated type" but maybe this can help you: You can write an application to get information about topics and types that are being published by other applications. You can do that using "built-in topics"

We have an example that shows how to use built-in topics: https://community.rti.com/examples/builtin-topics. Check it out: it's a good start. 

Basically, you app needs to create a DataReader for one of the built-in topics (participant, publication, or subscription) and simply start receiving samples when new enities are  created. 

Find more info looking at the API (here for c, but we have them for all languages)
https://community.rti.com/rti-doc/510/ndds.5.1.0/doc/html/api_c/structDDS__PublicationBuiltinTopicData.html
https://community.rti.com/rti-doc/510/ndds.5.1.0/doc/html/api_c/structDDS__SubscriptionBuiltinTopicData.html

Does this answer your question?

 -- Gianpiero!