Profile.cpp File Reference

#include "tao/Profile.h"
#include "tao/Messaging_PolicyValueC.h"
#include "tao/Stub.h"
#include "tao/debug.h"
#include "tao/target_specification.h"
#include "tao/ORB_Core.h"
#include "tao/Client_Strategy_Factory.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "tao/PolicyC.h"
#include "tao/Endpoint.h"
#include "ace/ACE.h"
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"

Include dependency graph for Profile.cpp:

Include dependency graph

Go to the source code of this file.

Functions

CORBA::Boolean operator<< (TAO_OutputCDR &cdr, const TAO_opaque &x)
CORBA::Boolean operator>> (TAO_InputCDR &cdr, TAO_opaque &x)


Function Documentation

CORBA::Boolean operator<< TAO_OutputCDR cdr,
const TAO_opaque x
 

Definition at line 942 of file Profile.cpp.

00943 {
00944   CORBA::ULong const length = x.length ();
00945   cdr.write_ulong (length);
00946 
00947 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
00948   if (x.mb () != 0)
00949     {
00950       cdr.write_octet_array_mb (x.mb ());
00951     }
00952   else
00953 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
00954     {
00955       cdr.write_octet_array (x.get_buffer (), length);
00956     }
00957 
00958   return (CORBA::Boolean) cdr.good_bit ();
00959 }

CORBA::Boolean operator>> TAO_InputCDR cdr,
TAO_opaque x
 

Definition at line 962 of file Profile.cpp.

00963 {
00964   CORBA::ULong length;
00965   cdr.read_ulong (length);
00966 
00967 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
00968   if(ACE_BIT_DISABLED(cdr.start()->flags(),
00969                       ACE_Message_Block::DONT_DELETE)
00970      && (cdr.orb_core() == 0
00971          || 1 == cdr.orb_core()->
00972          resource_factory()->
00973          input_cdr_allocator_type_locked()
00974          )
00975      )
00976     {
00977       x.replace (length, cdr.start ());
00978       x.mb ()->wr_ptr (x.mb ()->rd_ptr () + length);
00979       cdr.skip_bytes (length);
00980     }
00981   else
00982 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */
00983     {
00984       x.length (length);
00985       cdr.read_octet_array (x.get_buffer (), length);
00986     }
00987 
00988   return (CORBA::Boolean) cdr.good_bit ();
00989 }


Generated on Thu Nov 9 12:05:28 2006 for TAO by doxygen 1.3.6