summaryrefslogtreecommitdiff
path: root/TAO/tao/CDR.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/CDR.i')
-rw-r--r--TAO/tao/CDR.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/TAO/tao/CDR.i b/TAO/tao/CDR.i
index b7138628c11..3c39bd41b13 100644
--- a/TAO/tao/CDR.i
+++ b/TAO/tao/CDR.i
@@ -254,3 +254,25 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
{
return ACE_static_cast (ACE_InputCDR &, is) >> x;
}
+
+ACE_INLINE CORBA::Boolean
+operator<< (TAO_OutputCDR &strm, const CORBA::ParameterMode &_tao_enumval)
+{
+ CORBA::ULong _tao_temp = _tao_enumval;
+ return strm << _tao_temp;
+}
+
+ACE_INLINE CORBA::Boolean
+operator>> (TAO_InputCDR &strm, CORBA::ParameterMode &_tao_enumval)
+{
+ CORBA::ULong _tao_temp = 0;
+ CORBA::Boolean _tao_result = strm >> _tao_temp;
+
+ if (_tao_result == 1)
+ {
+ _tao_enumval = ACE_static_cast (CORBA::ParameterMode, _tao_temp);
+ }
+
+ return _tao_result;
+}
+