struct

3 posts / 0 new
Last post
Offline
Last seen: 3 days 2 hours ago
Joined: 09/10/2022
Posts: 44
Set default value for sequence in IDL definition

Hello.

I use rtiddsgen version 3.0.0 and I generate codes for c++11. I want to set default value for sequence fields by @default annotation when I define struct in idl fille.

But as mentioned in RTI_ConnextDDS_CoreLibraries_GettingStarted_ExtensibleTypesAddendum :

          The default annotation is not currently supported on arrays and sequences even if their types are types in which the annotation is supported."

3 posts / 0 new
Last post
frgo's picture
Offline
Last seen: 7 years 1 week ago
Joined: 12/28/2011
Posts: 20
Q: Use struct or not ?

Hi all:

I am new to DDS and I am currently designing an IDL for exchanging messages between applications. For defining complex data there is now the question of using structs or not, as shown here:

// PIB Network Participant

struct participant_t
{
string<36> id; //@key
unsigned long rtps_host_id;
unsigned long rtps_app_id;
unsigned long rtps_instance_id;
string application;
string hostname;
long process_id;
long thread_id;
};

Subscribe to RSS - struct