convertToXml doesn't convert included IDL files

2 posts / 0 new
Last post
Offline
Last seen: 1 year 2 months ago
Joined: 10/23/2013
Posts: 43
convertToXml doesn't convert included IDL files

I am using rtiddsgen  -convertToXml option to convert IDL files to XML.  If the IDL file has #include statements to include other IDL files, rtiddsgen does not convert those IDL files to XML.  Is there a option to either include IDL into the parent IDL files prior to conversion or to convert each included IDL file?

 

Thanks.

Mark

Organization:
Gerardo Pardo's picture
Offline
Last seen: 3 weeks 6 days ago
Joined: 06/02/2010
Posts: 601

Hi,

I am speaking from memory but I think there is currently no way to have rtiddsgen automatically parse the include statements and convert those IDL files as well.  The problem with doing this is that when using rtiddsgen to generate C/C++ code it would be easy to end up with duplicated C/C++ symbols and  files which would cause link errors.

The model is that you need to run rtiddsgen separately on each IDL file to conver it and then use the resuting files.

We are working on a new version of rtiddsgen so I would be very interested in understanding your use-case better, specially if the approach of running rtiddsgen separately on each IDL file is not suitable for you. That way we could identify what additional features we may need to add to help use-cases like yours. Would you mind posting these additional details to the thread?

Thanks!

Gerardo