#include "tao/Tagged_Components.h"
#include "tao/GIOP_Message_Version.h"
#include "tao/Refcounted_ObjectKey.h"
#include "tao/Service_Callbacks.h"
#include "tao/Configurable_Refcount.h"
#include "tao/Profile.inl"
Include dependency graph for Profile.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | CORBA |
Classes | |
class | TAO_Profile |
Defines the Profile interface. More... | |
class | TAO_Unknown_Profile |
A TAO_Profile class to handle foreign profiles. More... | |
Typedefs | |
typedef TAO::unbounded_value_sequence< CORBA::Octet > | TAO_opaque |
Functions | |
TAO_Export CORBA::Boolean | operator<< (TAO_OutputCDR &, const TAO_opaque &) |
TAO_Export CORBA::Boolean | operator>> (TAO_InputCDR &, TAO_opaque &) |
Variables | |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL class | ACE_Lock |
ACE_END_VERSIONED_NAMESPACE_DECL TAO_BEGIN_VERSIONED_NAMESPACE_DECL class | TAO_MProfile |
Definition in file Profile.h.
|
Definition at line 403 of file Profile.h. Referenced by operator<<(), and operator>>(). |
|
Definition at line 934 of file Profile.cpp. References TAO::unbounded_value_sequence< T >::get_buffer(), ACE_OutputCDR::good_bit(), TAO::unbounded_value_sequence< T >::length(), TAO_opaque, ACE_OutputCDR::write_octet_array(), ACE_OutputCDR::write_octet_array_mb(), and ACE_OutputCDR::write_ulong().
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. References ACE_BIT_DISABLED, ACE_Message_Block::flags(), TAO::unbounded_value_sequence< T >::get_buffer(), ACE_InputCDR::good_bit(), TAO::unbounded_value_sequence< T >::length(), TAO_InputCDR::orb_core(), ACE_InputCDR::read_octet_array(), ACE_InputCDR::read_ulong(), TAO::unbounded_value_sequence< T >::replace(), ACE_InputCDR::skip_bytes(), ACE_InputCDR::start(), and TAO_opaque.
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 } |
|
|
|
|