<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
I'm not sure what you mean, but be carefull with<br>
"in/out" parameters : the parameter is sent by the caller<br>
throught the network to the servant and then sent back<br>
throught the network to the caller even if it is not<br>
modified. It passes 2 times in the network.<br>
It could be network bandwith consuming<br>
in that case...<br>
<br>
If you want to use const parameter as a non-const<br>
just use the "const_cast" operator inside your method.<br>
I don't known if this is clean regarding C++ paradigms.<br>
<br>
Antonio.<br>
<br>
<br>
Teemu Torma a écrit :
<blockquote cite="mid200802071442.15802.teemu@torma.org" type="cite">
<pre wrap="">On Thursday 07 February 2008, DA SILVA Antonio wrote:
</pre>
<blockquote type="cite">
<pre wrap="">When I declare a parameter as "in" inside an IDL,
it is then implemented as a reference in C++.
How can I store the parameter/data I receive in this
reference without copying it?
</pre>
</blockquote>
<pre wrap=""><!---->
If the parameter is an sequence, you could make it inout parameter to
get it passed as non-const reference and steal the contents.
Teemu
_______________________________________________
omniORB-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a>
<a class="moz-txt-link-freetext" href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
_________________________
Antonio DA SILVA
C A R A X IT Department
Software Engineer
11 bis rue d'Aguesseau
75008 Paris, FRANCE
Tel +33 (0)1 70 91 67 94
_________________________
</pre>
</body>
</html>