Principal.h File Reference

#include "tao/CORBA_methods.h"
#include "tao/OctetSeqC.h"
#include "tao/Pseudo_VarOut_T.h"
#include "ace/Thread_Mutex.h"
#include "ace/Atomic_Op.h"
#include "tao/Principal.i"

Include dependency graph for Principal.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  CORBA

Functions

TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, CORBA::Principal *)
TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Principal *&)


Detailed Description

Principal.h,v 1.28 2006/06/19 14:51:11 parsons Exp

The CORBA::Principal pseudo-object implementation.

Author:
Copyright 1994-1995 by Sun Microsystems Inc.

DOC group at Wash U and UCI.

Definition in file Principal.h.


Function Documentation

TAO_Export CORBA::Boolean operator<< TAO_OutputCDR ,
CORBA::Principal
 

Definition at line 31 of file Principal.cpp.

References TAO::unbounded_value_sequence< T >::get_buffer(), ACE_OutputCDR::good_bit(), CORBA::Principal::id, TAO::unbounded_value_sequence< T >::length(), ACE_OutputCDR::write_long(), ACE_OutputCDR::write_octet_array(), and ACE_OutputCDR::write_ulong().

00032 {
00033   if (x != 0)
00034     {
00035       CORBA::ULong length  = x->id.length ();
00036       cdr.write_long (length);
00037       cdr.write_octet_array (x->id.get_buffer (), length);
00038     }
00039   else
00040     {
00041       cdr.write_ulong (0);
00042     }
00043 
00044   return (CORBA::Boolean) cdr.good_bit ();
00045 }

TAO_Export CORBA::Boolean operator>> TAO_InputCDR ,
CORBA::Principal *& 
 

Definition at line 48 of file Principal.cpp.

References ACE_NEW_RETURN, TAO::unbounded_value_sequence< T >::get_buffer(), ACE_InputCDR::good_bit(), CORBA::Principal::id, TAO::unbounded_value_sequence< T >::length(), ACE_InputCDR::read_octet_array(), and ACE_InputCDR::read_ulong().

00049 {
00050   CORBA::ULong length;
00051   cdr.read_ulong (length);
00052 
00053   if (length == 0 || !cdr.good_bit ())
00054     {
00055       x = 0;
00056     }
00057   else
00058     {
00059       ACE_NEW_RETURN (x, CORBA::Principal, 0);
00060       x->id.length (length);
00061       cdr.read_octet_array (x->id.get_buffer (), length);
00062     }
00063 
00064   return (CORBA::Boolean) cdr.good_bit ();
00065 }


Generated on Thu Nov 9 12:05:25 2006 for TAO by doxygen 1.3.6