Jump to content
OpenSplice DDS Forum
Sign in to follow this  
Akhil Chandra

Declaration of new data types to use in a topic

Recommended Posts

const char * fw_ChatMessage_metaDescriptor[] INITIALIZE( {"<MetaData version=\"1.0.0\"><Module name=\"Chat\"><Struct name=\"ChatMessage\"><Member name=\"userID\">",
"<Long/></Member><Member name=\"index\"><Long/></Member><Member name=\"content\"><String/></Member></Struct>",
"</Module></MetaData>"});

Hello,

I am trying to create my own structure, which consists of different data types

What if I have created a new structure and now to use it

How do I write in here in the above code?

 

 

Regards,

Akhil Chandra Maganti

Share this post


Link to post
Share on other sites

You should write your struct in .idl file and use idlpp to generate the .c/.cpp and header file in OpenSplice .

 

You don't need to write .c/.cpp or header yourself .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×