[omniORB] about examples with sort of sequence

Empting Arnd Arnd.Empting@kst.siemens.de
Wed, 16 May 2001 09:53:31 +0200


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