Classes | Namespaces | Typedefs | Functions

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.inl"
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.

Classes

class  CORBA::Principal
 A "Principal" identifies an authenticated entity in the network administration framework. More...

Namespaces

namespace  CORBA
 

FUZZ: disable check_for_include/.


Typedefs

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.

{
  if (x != 0)
    {
      CORBA::ULong length  = x->id.length ();
      cdr.write_long (length);
      cdr.write_octet_array (x->id.get_buffer (), length);
    }
  else
    {
      cdr.write_ulong (0);
    }

  return (CORBA::Boolean) cdr.good_bit ();
}

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

Definition at line 48 of file Principal.cpp.

{
  CORBA::ULong length;
  cdr.read_ulong (length);

  if (length == 0 || !cdr.good_bit ())
    {
      x = 0;
    }
  else
    {
      ACE_NEW_RETURN (x, CORBA::Principal, 0);
      x->id.length (length);
      cdr.read_octet_array (x->id.get_buffer (), length);
    }

  return (CORBA::Boolean) cdr.good_bit ();
}

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines