RTI Connext Modern C++ API  Version 7.0.0
Foo.idl

The definition of the type in IDL that rtiddsgen uses to generate Foo_publisher.cxx, Foo_subscriber.cxx and the type-support code. There is also the definition of MyType and MyOtherType, used in some Programming How-To's.

See also
Working with IDL types
struct Foo {
long x; //@key
long y;
};
struct MyType {
long my_long;
string<512> my_string;
Foo my_foo;
sequence<long, 10> my_sequence;
Foo my_array[5];
Foo my_optional; //@Optional
};
enum Color {
RED,
GREEN,
BLUE
};
enum MyUnionDiscriminator {
USE_LONG,
USE_STRING,
USE_FOO
};
union MyUnion switch (MyUnionDiscriminator) {
case USE_LONG:
long my_long;
case USE_STRING:
string my_string;
case USE_FOO:
Foo my_foo;
};
struct MyOtherType {
long m1;
double m2;
string m3;
};