5.15. FlatData Language Binding¶
This section is organized as follows:
5.15.1. Overview¶
RTI Connext Micro supports the FlatDataTM language binding in the same manner as RTI Connext. However, Connext Micro only supports the FlatData language binding for traditional C++ APIs, whereas RTI Connext also supports it for the Modern C++ API. The FlatData language binding is not supported for the C language binding.
5.15.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
5.15.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 (available here if you have Internet access).
For details on how to build and read a FlatData sample, see FlatData.