I'm using openDDS pub/sun middleware. I have tested openDDS using complex structure.
e.g .
typedef struct DSMD
{
string a;
long b;
} StandByModeData;
struct DSMCD{
string SessionId;
DSMD Data;
};
but now I have different structure.which is pass over the openDDS.
how can I use template in idl structure?
I need something like this.
template <struct T>
struct array {
T typr;
};
This is something that is currently not possible with OpenDDS. IDL3+ does define templated modules which is like your example, but that is not supported with OpenDDS or any other DDS vendor as far as I know.