Xtype extensions

2 posts / 0 new
Last post
Offline
Last seen: 7 years 3 weeks ago
Joined: 06/10/2014
Posts: 49
Xtype extensions

Hi,

I have a device using Connext Micro and other devices in the system are using Connext Core.  Some topics that were developed for Core are using the @Optional keyword on some fields in the IDL. I found that these topics will not match up with the Micro device. Is there any way to get these topics to match other than removing the @Optional extension? Is there any plan for Micro to support Xtype extensions?

Thanks,

Anne Fiore

Organization:
Gerardo Pardo's picture
Offline
Last seen: 1 week 1 day ago
Joined: 06/02/2010
Posts: 602

Hi Anne,

Yes our current plan is to support  @optional and other DDS-XTYPES features in the next release of Connext DDS Micro. In the mean time you could use sequneces with max length of 1 to emulate the behavior of optional  members.

That is substitute:

struct MyStruct {
    @optional Foo foo_member;
};  

With:

struct MyStruct {
    sequence<Foo, 1> foo_member;
};   

Regards,

Gerardo