Set default value for sequence in IDL definition

3 posts / 0 new
Last post
Offline
Last seen: 4 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."

Do you have any idea to create default value for sequences when define structs in idl by something like:

          @default({1,2,3}) sequence<int,1000> seqField;

Is there any solution for my problem?

Howard's picture
Offline
Last seen: 2 days 2 hours ago
Joined: 11/29/2012
Posts: 626

Nope...as stated in the line that you quoted.

Offline
Last seen: 4 days 2 hours ago
Joined: 09/10/2022
Posts: 44

Thank you for confirmation