GIOPC.cpp File Reference

#include "tao/GIOPC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"

Include dependency graph for GIOPC.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  TAO

Functions

CORBA::Boolean operator<< (TAO_OutputCDR &strm, const GIOP::Version &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, GIOP::Version &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const GIOP::IORAddressingInfo &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, GIOP::IORAddressingInfo &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const GIOP::TargetAddress &_tao_union)
CORBA::Boolean operator>> (TAO_InputCDR &strm, GIOP::TargetAddress &_tao_union)


Function Documentation

CORBA::Boolean operator<< TAO_OutputCDR strm,
const GIOP::TargetAddress _tao_union
 

Definition at line 296 of file GIOPC.cpp.

00300 {
00301   if ( !(strm << _tao_union._d ()) )
00302     {
00303       return false;
00304     }
00305 
00306   CORBA::Boolean result = true;
00307 
00308   switch (_tao_union._d ())
00309   {
00310     case 0:
00311       {
00312         result = strm << _tao_union.object_key ();
00313       }
00314       break;
00315     case 1:
00316       {
00317         result = strm << _tao_union.profile ();
00318       }
00319       break;
00320     case 2:
00321       {
00322         result = strm << _tao_union.ior ();
00323       }
00324       break;
00325     default:
00326       break;
00327   }
00328 
00329   return result;
00330 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const GIOP::IORAddressingInfo _tao_aggregate
 

Definition at line 273 of file GIOPC.cpp.

00277 {
00278   return
00279     (strm << _tao_aggregate.selected_profile_index) &&
00280     (strm << _tao_aggregate.ior);
00281 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const GIOP::Version _tao_aggregate
 

Definition at line 250 of file GIOPC.cpp.

00254 {
00255   return
00256     (strm << ACE_OutputCDR::from_octet (_tao_aggregate.major)) &&
00257     (strm << ACE_OutputCDR::from_octet (_tao_aggregate.minor));
00258 }

CORBA::Boolean operator>> TAO_InputCDR strm,
GIOP::TargetAddress _tao_union
 

Definition at line 332 of file GIOPC.cpp.

00336 {
00337   CORBA::Short _tao_discriminant;
00338   if ( !(strm >> _tao_discriminant) )
00339     {
00340       return false;
00341     }
00342 
00343   CORBA::Boolean result = true;
00344 
00345   switch (_tao_discriminant)
00346   {
00347     case 0:
00348       {
00349         CORBA::OctetSeq _tao_union_tmp;
00350         result = strm >> _tao_union_tmp;
00351 
00352         if (result)
00353           {
00354             _tao_union.object_key (_tao_union_tmp);
00355             _tao_union._d (_tao_discriminant);
00356           }
00357       }
00358       break;
00359     case 1:
00360       {
00361         IOP::TaggedProfile _tao_union_tmp;
00362         result = strm >> _tao_union_tmp;
00363 
00364         if (result)
00365           {
00366             _tao_union.profile (_tao_union_tmp);
00367             _tao_union._d (_tao_discriminant);
00368           }
00369       }
00370       break;
00371     case 2:
00372       {
00373         GIOP::IORAddressingInfo _tao_union_tmp;
00374         result = strm >> _tao_union_tmp;
00375 
00376         if (result)
00377           {
00378             _tao_union.ior (_tao_union_tmp);
00379             _tao_union._d (_tao_discriminant);
00380           }
00381       }
00382       break;
00383     default:
00384       _tao_union._d (_tao_discriminant);
00385       break;
00386   }
00387 
00388   return result;
00389 }

CORBA::Boolean operator>> TAO_InputCDR strm,
GIOP::IORAddressingInfo _tao_aggregate
 

Definition at line 283 of file GIOPC.cpp.

00287 {
00288   return
00289     (strm >> _tao_aggregate.selected_profile_index) &&
00290     (strm >> _tao_aggregate.ior);
00291 }

CORBA::Boolean operator>> TAO_InputCDR strm,
GIOP::Version _tao_aggregate
 

Definition at line 260 of file GIOPC.cpp.

00264 {
00265   return
00266     (strm >> ACE_InputCDR::to_octet (_tao_aggregate.major)) &&
00267     (strm >> ACE_InputCDR::to_octet (_tao_aggregate.minor));
00268 }


Generated on Thu Nov 9 11:59:47 2006 for TAO by doxygen 1.3.6