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
 
    long x; 
    long y;
};
struct MyType {
    long my_long;
    string<512> my_string;
    sequence<long, 10> my_sequence;
};
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:
};
struct MyOtherType {
    long m1;
    double m2;
    string m3;
};