TAO_Marshal_Principal Class Reference

TAO_Marshal_Principal. More...

#include <Marshal.h>

Inheritance diagram for TAO_Marshal_Principal:

Inheritance graph
[legend]
Collaboration diagram for TAO_Marshal_Principal:

Collaboration graph
[legend]
List of all members.

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


Detailed Description

TAO_Marshal_Principal.

marshal a principal

Definition at line 180 of file Marshal.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_Marshal_Principal::TAO_Marshal_Principal void   ) 
 

Definition at line 23 of file Marshal.inl.

00024 {
00025 }


Member Function Documentation

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.

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 }

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.

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 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:21:57 2008 for TAO_AnyTypeCode by doxygen 1.3.6