[omniORB] about examples with sort of sequence
edward_lin
edward_lin@EGPALM.com.tw
Wed, 16 May 2001 16:11:10 +0800
OMG has defined the spec. and behavior of CORBA sequence<T>, such as
operator[ ] of the specified sequence, if the ORB vendor follow the OMG
spec. porting is possible.
Best Regards
Edward Lin
-----Original Message-----
From: Empting Arnd [mailto:Arnd.Empting@kst.siemens.de]
Sent: Wednesday, May 16, 2001 3:54 PM
To: edward_lin; 'omniorb-list@uk.research.att.com'
Subject: RE: [omniORB] about examples with sort of sequence
Any idea if such code is portable between different ORBs?
Regards
Arnd Empting
> -----Original Message-----
> From: edward_lin [mailto:edward_lin@EGPALM.com.tw]
> Sent: Wednesday, May 16, 2001 9:47 AM
> To: 'Patrizio Ferlito'; 'Thomas Amsler';
> omniorb-list@uk.research.att.com
> Subject: RE: [omniORB] about examples with sort of sequence
>
>
> Yes, sort of CORBA sequence is possible,
> you can use STL std::sort() to work it out.
>
> #include <algorithm>
>
>
> T_var myData;
> // get data
> // ..............
> //...............
> T* pBuff = &myData[0];
> long len = myData->length();
> std::sort( pBuff, pBuff + len );
>
> It really work.
>
> Best Regards,
> Edward Lin
>
> -----Original Message-----
> From: Patrizio Ferlito [mailto:pferlito@yahoo.com]
> Sent: Wednesday, May 16, 2001 2:51 PM
> To: edward_lin; 'Thomas Amsler'; omniorb-list@uk.research.att.com
> Subject: [omniORB] about examples with sort of sequence
>
>
>
> Hi,
>
> I thank you for your example but I would ask you a question
> about the sort
> of a sequence.
>
> Do I have to write my sort procedure or the C++ mapping of
> sequence provides
> some usefull features
> about the sort of a sequence ?
>
> I thank you in advance.
> Kind regards
>
> Patrizio Ferlito