[omniORB] Array and sequence initialization

renej renej.frog at gmail.com
Fri Jun 3 17:39:37 BST 2005


On 6/3/05, kleva <kleva at proc.ru> wrote:
> 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;

wp.length(2);

>  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
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>



More information about the omniORB-list mailing list