diff options
author | bala <balanatarajan@users.noreply.github.com> | 1999-08-19 21:31:46 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 1999-08-19 21:31:46 +0000 |
commit | c8633d97ff9f30587429924b62fc852eba7e3dcc (patch) | |
tree | 34d0799fa0af40193fbac5d26f888c25cc805085 /TAO/tao/BoundsC.i | |
parent | b5c4c12d72f2860d2c3a842fbecdf7adb25c32d8 (diff) | |
download | ATCD-c8633d97ff9f30587429924b62fc852eba7e3dcc.tar.gz |
Added support for CORBA::Bounds
Diffstat (limited to 'TAO/tao/BoundsC.i')
-rw-r--r-- | TAO/tao/BoundsC.i | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/tao/BoundsC.i b/TAO/tao/BoundsC.i new file mode 100644 index 00000000000..40e552e3e13 --- /dev/null +++ b/TAO/tao/BoundsC.i @@ -0,0 +1,35 @@ +/* -*- C++ -*- */ +//$Id$ +// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* +// TAO and the TAO IDL Compiler have been developed by the Center for +// Distributed Object Computing at Washington University, St. Louis. +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +// ************************************************************* +// Inline operations for exception CORBA::Bounds +// ************************************************************* + +ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::Bounds &_tao_aggregate) +{ + // first marshal the repository ID + if (strm << _tao_aggregate._id ()) + return 1; + else + return 0; +} + +ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::Bounds &_tao_aggregate) +{ + // retrieve RepoID and verify if we are of that type + char *_tao_repoID; + if ((strm >> _tao_repoID) && + (_tao_aggregate._is_a (_tao_repoID))) + { + return 1; + } + else + return 0; +} + |