DDS Code Generator (X-Types Annotations)

2 posts / 0 new
Last post
Offline
Last seen: 6 years 11 months ago
Joined: 02/17/2017
Posts: 3
DDS Code Generator (X-Types Annotations)

Hello,

I have a couple of questions about the DDS code generator (5.2.3).

1.  In "RTI_CoreLibrariesAndUtilities_GettingStarted_ExtensibleTypesAddendum.pdf", it states that (sorry about the formatting):

Note: To specify both the “@ID” and “@Optional” annotations, they must be on separate lines:
struct MyType {
long a;
long b;
long c; //@Optional
//@ID 100
long d;
};

However, this appears not to be the case. In fact, I'd go as far as to say that the code generator will accept any number of annotations on the same line. Is that correct?

2.  The code generator will not accept @Shared with @Optional. Although this sounds reasonably, it is neither documented in the above document nor the OMG DDS specification. Any thoughts?

Thanks.

Regards,

Jeff.

Organization:
Keywords:
Offline
Last seen: 6 years 11 months ago
Joined: 02/17/2017
Posts: 3

Sorry, I shoud have made this clear. The RTI code generator supports shared members not be means of the @Shared annotation but by means of a properietary notation, i.e. "*".