I am new to DDS and IDL, and i hope that somebody can provide some advice on how to model the following in IDL.
This is based on a model from a OO perspective, and it is just intended as a quick example:
And this is my initial datamodel in IDL - is done correctly? How do I "model" inheritance and dependencies in IDL? a lot of the examples online are very simple - too simple the ones I have found...
module test{
struct carpool{
long id; //@key
string name;
sequence<car> cars;
};
struct car{
long id; //@key
string color;
};
////the following inherits from car
struct sedan{
string extra_equipment;
};
struct station_car{
integer number_of_doors;
};
};
This is just a made up example of inheritance, and properly not the best ;o)
Is this correct or is there a better way of modelling the same - can anyone provide a link to a good "HOWTO" for working with IDL for DDS? Note: I am working with RTI Connext DDS