diff options
Diffstat (limited to 'TAO/tao/Principal.h')
-rw-r--r-- | TAO/tao/Principal.h | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/TAO/tao/Principal.h b/TAO/tao/Principal.h deleted file mode 100644 index 48ecf23ce28..00000000000 --- a/TAO/tao/Principal.h +++ /dev/null @@ -1,80 +0,0 @@ -// This may look like C, but it's really -*- C++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = FILENAME -// principal.h -// -// = DESCRIPTION -// The CORBA_Principal pseudo-object implementation. -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems Inc. -// -// ============================================================================ - -#if !defined (TAO_PRINCIPAL_H) -# define TAO_PRINCIPAL_H - -class TAO_Export CORBA_Principal -{ - // = TITLE - // A "Principal" identifies an authenticated entity in the - // network administration framework. Identities are used to - // control acccess (authorization) as well as in audit trails - // (accountability). -public: - // To applications, the identifier is an opaque ID. - - // CORBA::SEQUENCE <CORBA::Octet> id; - CORBA::OctetSeq id; - - // @@ add "==", "<", ">" operators - - // The pseudo object operations. - static CORBA_Principal* _duplicate (CORBA_Principal*); - static CORBA_Principal* _nil (void); - - // = Stuff required for memory management. - CORBA::ULong _incr_refcnt (void); - CORBA::ULong _decr_refcnt (void); - - CORBA_Principal (void); - -private: - ~CORBA_Principal (void); - - // = these are not provided - CORBA_Principal &operator = (const CORBA::Principal_ptr &); - CORBA_Principal (const CORBA::Principal_ptr &); - -private: - CORBA::ULong refcount_; - // Number of outstanding references to this object. - - ACE_SYNCH_MUTEX refcount_mutex_; - // Protect the reference count, this is OK because we do no - // duplicates or releases on the critical path. - -#if defined (__GNUG__) - // G++ (even 2.6.3) stupidly thinks instances can't be created. - // This de-warns. - friend class everyone_needs_a_friend; -#endif /* __GNUG__ */ -}; - -extern TAO_Export CORBA_Boolean -operator<< (TAO_OutputCDR&, CORBA_Principal*); - -extern TAO_Export CORBA_Boolean -operator>> (TAO_InputCDR&, CORBA_Principal*&); - -#if defined (__ACE_INLINE__) -# include "tao/Principal.i" -#endif /* __ACE_INLINE__ */ - -#endif /* TAO_PRINCIPAL_H */ |