HelloWorld.idl

IDL Type Description

The data type to be disseminated by RTI Data Distribution Service is described in language independent IDL. The IDL file is input to rtiddsgen, which produces the following files.

The programming language specific type representation of the type Foo = HelloWorld, for use in the application code.

User Data Type Support types as required by the DDS specification for use in the application code.

Methods required by the RTI Data Distribution Service implementation. These contains the auto-generated methods for serializing and deserializing the type.

The files above are always generated in the C++/CLI language, even when code is generated with the -language C# option, because they depend on unmanaged code that ships with RTI Data Distribution Service. Once compiled, the code can be used from either C++/CLI or C# code; see the C# publisher and subscriber example code.

HelloWorld.idl

[$(NDDSHOME)/example/CPPCLI/helloWorld/HelloWorld.idl]

struct HelloWorld {
    string<128> msg;
};

RTI Data Distribution Service .Net APIs Version 4.5c Copyright © 9 Jun 2010 Real-Time Innovations, Inc