diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-05-31 04:50:42 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-05-31 04:50:42 +0000 |
commit | 2d5b2614b8d57f841fdaaaa9d870b280c3b6d3dc (patch) | |
tree | ee58ee5a82223a090f15ad84fbdd71b0084c4e67 /TAO/tao/CDR.i | |
parent | 3c0e9973ccf1be388f6756e14844de9514d5ff4c (diff) | |
download | ATCD-2d5b2614b8d57f841fdaaaa9d870b280c3b6d3dc.tar.gz |
ChangeLogTag:Wed May 30 21:41:53 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/CDR.i')
-rw-r--r-- | TAO/tao/CDR.i | 22 |
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; +} + |