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 dependency graph for Principal.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  CORBA::Principal
 A "Principal" identifies an authenticated entity in the network administration framework. More...

Typedefs

typedef Principal * CORBA::Principal_ptr
typedef TAO_Pseudo_Var_T<
Principal > 
CORBA::Principal_var
typedef TAO_Pseudo_Out_T<
Principal > 
CORBA::Principal_out

Functions

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


Detailed Description

Id
Principal.h 73791 2006-07-27 20:54:56Z wotte

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 ACE_OutputCDR::good_bit(), CORBA::Principal::id, 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, ACE_InputCDR::good_bit(), CORBA::Principal::id, 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 Tue Feb 2 17:38:44 2010 for TAO by  doxygen 1.4.7