[omniORB] about examples with sort of sequence

edward_lin edward_lin@EGPALM.com.tw
Wed, 16 May 2001 16:03:15 +0800


I think it is dependent on language mapping, different language gets its own
solution, 
no matter with other ORBs. If someone use C language mapping, he should
apply qsort() function, and vice vursa.

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