#include <Marshal.h>
Inheritance diagram for TAO_Marshal_Principal:
Public Member Functions | |
TAO_Marshal_Principal (void) | |
virtual TAO::traverse_status | skip (CORBA::TypeCode_ptr tc, TAO_InputCDR *context) |
skip operation | |
virtual TAO::traverse_status | append (CORBA::TypeCode_ptr tc, TAO_InputCDR *src, TAO_OutputCDR *dest) |
append operation |
marshal a principal
Definition at line 180 of file Marshal.h.
|
Definition at line 23 of file Marshal.inl.
00024 { 00025 } |
|
append operation
Implements TAO_Marshal_Object. Definition at line 245 of file append.cpp. References TAO_Marshal_Object::perform_append().
00248 { 00249 // write the octet sequence representing the Principal 00250 return TAO_Marshal_Object::perform_append (CORBA::_tc_OctetSeq, src, dest); 00251 } |
|
skip operation
Implements TAO_Marshal_Object. Definition at line 208 of file skip.cpp. References ACE_DEBUG, ACE_TEXT, LM_DEBUG, ACE_InputCDR::read_ulong(), ACE_InputCDR::skip_bytes(), and TAO_debug_level.
00209 { 00210 CORBA::Boolean continue_skipping = true; 00211 00212 // specifies the number of bytes in the Principal 00213 CORBA::ULong len; 00214 00215 continue_skipping = stream->read_ulong (len); 00216 if (len > 0 && continue_skipping) 00217 { 00218 continue_skipping = stream->skip_bytes (len); 00219 } 00220 00221 if (continue_skipping) 00222 return TAO::TRAVERSE_CONTINUE; 00223 else 00224 { 00225 if (TAO_debug_level > 0) 00226 ACE_DEBUG (( 00227 LM_DEBUG, 00228 ACE_TEXT ("TAO_Marshal_Principal::skip detected error\n") 00229 )); 00230 throw ::CORBA::MARSHAL (0, CORBA::COMPLETED_MAYBE); 00231 } 00232 } |