#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_NS_ctype.h"
Include dependency graph for Profile.cpp:
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) |
|
Definition at line 934 of file Profile.cpp.
00935 { 00936 CORBA::ULong const length = x.length (); 00937 cdr.write_ulong (length); 00938 00939 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) 00940 if (x.mb () != 0) 00941 { 00942 cdr.write_octet_array_mb (x.mb ()); 00943 } 00944 else 00945 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */ 00946 { 00947 cdr.write_octet_array (x.get_buffer (), length); 00948 } 00949 00950 return (CORBA::Boolean) cdr.good_bit (); 00951 } |
|
Definition at line 954 of file Profile.cpp.
00955 { 00956 CORBA::ULong length; 00957 cdr.read_ulong (length); 00958 00959 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) 00960 if(ACE_BIT_DISABLED(cdr.start()->flags(), 00961 ACE_Message_Block::DONT_DELETE) 00962 && (cdr.orb_core() == 0 00963 || 1 == cdr.orb_core()-> 00964 resource_factory()-> 00965 input_cdr_allocator_type_locked() 00966 ) 00967 ) 00968 { 00969 x.replace (length, cdr.start ()); 00970 x.mb ()->wr_ptr (x.mb ()->rd_ptr () + length); 00971 cdr.skip_bytes (length); 00972 } 00973 else 00974 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ 00975 { 00976 x.length (length); 00977 cdr.read_octet_array (x.get_buffer (), length); 00978 } 00979 00980 return (CORBA::Boolean) cdr.good_bit (); 00981 } |