What are the best practices of writin... PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Next message Lokesh Kumar  posted on Thursday, August 27, 2015 - 08:02 am
What are the best practices of writing IDL files and prevent ourself from errors like identifier redeclared while generating code using modeler for our c++ application.

like :-
(1) Best practices writing an idl file.
(2) including one idl into another?
(3) Accessing topics/structures fields
from other idls.

Is there any documentation on molder and idl files?
Next message James Butcher  posted on Thursday, August 27, 2015 - 04:11 pm

A good resource for designing IDL and DDS data modelling in general is
http://www.prismtech.com/products/vortex/resources/demand-webcasts/art-and-scien ce-dds-data-modeling

For including one idl file into another it is just a simple #include at the top of the IDL file that will pull another one in. If an IDL is included into another you can reference it's variables as simply moduleName::structName

I would consider it good practice to have a one module defined in each IDL file, but you're free to open and add to the same named module across multiple files.

Do you have a specific error?
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message