TAO_Marshal_Principal. More...
#include <Marshal.h>
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.
TAO_Marshal_Principal::TAO_Marshal_Principal | ( | void | ) |
Definition at line 23 of file Marshal.inl.
{ }
TAO::traverse_status TAO_Marshal_Principal::append | ( | CORBA::TypeCode_ptr | tc, | |
TAO_InputCDR * | src, | |||
TAO_OutputCDR * | dest | |||
) | [virtual] |
append operation
Implements TAO_Marshal_Object.
Definition at line 245 of file append.cpp.
{ // write the octet sequence representing the Principal return TAO_Marshal_Object::perform_append (CORBA::_tc_OctetSeq, src, dest); }
TAO::traverse_status TAO_Marshal_Principal::skip | ( | CORBA::TypeCode_ptr | tc, | |
TAO_InputCDR * | context | |||
) | [virtual] |
skip operation
Implements TAO_Marshal_Object.
Definition at line 208 of file skip.cpp.
{ CORBA::Boolean continue_skipping = true; // specifies the number of bytes in the Principal CORBA::ULong len; continue_skipping = stream->read_ulong (len); if (len > 0 && continue_skipping) { continue_skipping = stream->skip_bytes (len); } if (continue_skipping) return TAO::TRAVERSE_CONTINUE; else { if (TAO_debug_level > 0) ACE_DEBUG (( LM_DEBUG, ACE_TEXT ("TAO_Marshal_Principal::skip detected error\n") )); throw ::CORBA::MARSHAL (0, CORBA::COMPLETED_MAYBE); } }