[omniORB] Array and sequence initialization
kleva
kleva at proc.ru
Fri Jun 3 13:17:41 BST 2005
Hi all!
If I have such IDL code:
struct WAPBearerInformation {
unsigned short connectionIndex;
unsigned short ETPort;
unsigned short GWPort;
WAPBearerInformationUnion m_WAPbearerInformationUnion;
};
typedef sequence<WAPBearerInformation> WAPParameters;
Ho should I declare and init
WAPParameters wp;
so that I can make somthing like:
wp[0].connectionIndex = 0;
wp[0].ETPort = 0;
wp[0].GWPort = 1;
wp[0].WAPbearerInformationUnion.bearerInfoCSD(csd);
wp[1].connectionIndex = 1;
wp[1].ETPort = 65534;
wp[1].GWPort = 65533;
wp[1].WAPbearerInformationUnion.bearerInfoSMS(sms);
Thanks
--
Regrads
kleva mailto:kleva at proc.ru
More information about the omniORB-list
mailing list