#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 "tao/Profile.inl"
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) |
CORBA::Boolean operator<< | ( | TAO_OutputCDR & | cdr, | |
const TAO_opaque & | x | |||
) |
Definition at line 915 of file Profile.cpp.
00916 { 00917 CORBA::ULong const length = x.length (); 00918 cdr.write_ulong (length); 00919 00920 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) 00921 if (x.mb () != 0) 00922 { 00923 cdr.write_octet_array_mb (x.mb ()); 00924 } 00925 else 00926 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */ 00927 { 00928 cdr.write_octet_array (x.get_buffer (), length); 00929 } 00930 00931 return (CORBA::Boolean) cdr.good_bit (); 00932 }
CORBA::Boolean operator>> | ( | TAO_InputCDR & | cdr, | |
TAO_opaque & | x | |||
) |
Definition at line 935 of file Profile.cpp.
00936 { 00937 CORBA::ULong length; 00938 cdr.read_ulong (length); 00939 00940 #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) 00941 if(ACE_BIT_DISABLED(cdr.start()->flags(), 00942 ACE_Message_Block::DONT_DELETE) 00943 && (cdr.orb_core() == 0 00944 || 1 == cdr.orb_core()-> 00945 resource_factory()-> 00946 input_cdr_allocator_type_locked() 00947 ) 00948 ) 00949 { 00950 x.replace (length, cdr.start ()); 00951 x.mb ()->wr_ptr (x.mb ()->rd_ptr () + length); 00952 cdr.skip_bytes (length); 00953 } 00954 else 00955 #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 0 */ 00956 { 00957 x.length (length); 00958 cdr.read_octet_array (x.get_buffer (), length); 00959 } 00960 00961 return (CORBA::Boolean) cdr.good_bit (); 00962 }