3.16. FlatData Language Binding

This section is organized as follows:

3.16.1. Overview

Connext Micro supports the FlatData™ language binding in the same manner as Connext Professional. However, Connext Micro only supports the FlatData language binding for traditional C++ APIs, whereas Connext Professional also supports it for the Modern C++ API. The FlatData language binding is not supported for the C language binding.

3.16.2. Getting Started

The best way to start is to generate an example by creating an example IDL file HelloWorld.idl containing the following IDL type:

@final
@language_binding(FLAT_DATA)
struct HelloWorld
{
   long a;
}

Next, run:

rtiddsgen -example -micro -language C++ HelloWorld.idl

3.16.3. Further Information

For more details about this feature, please see the FlatData Language Binding section in the RTI Connext DDS Core Libraries User’s Manual.

For details on how to build and read a FlatData sample, see FlatData.