diff options
Diffstat (limited to 'TAO/tao/Context.h')
-rw-r--r-- | TAO/tao/Context.h | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/TAO/tao/Context.h b/TAO/tao/Context.h index f24fd9d4939..8058abf82b9 100644 --- a/TAO/tao/Context.h +++ b/TAO/tao/Context.h @@ -22,8 +22,6 @@ #include "tao/corbafwd.h" -#if !defined (TAO_HAS_MINIMUM_CORBA) - class TAO_Export CORBA_Context { // = TITLE @@ -50,44 +48,6 @@ public: CORBA::ULong _incr_refcnt (void); CORBA::ULong _decr_refcnt (void); -// All the spec-required functions below will just throw -// a CORBA::NO_IMPLEMENT exception and do nothing else. - - const char *context_name ( - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment () - ) const; - - CORBA_Context_ptr parent ( - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment () - ) const; - - void create_child (const char *child_ctx_name, - CORBA_Context_out child_ctx, - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - - void set_one_value (const char *propname, - const CORBA_Any &propvalue, - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - - void set_values (CORBA::NVList_ptr values, - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - - void delete_values (const char *propname, - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - - void get_values (const char *start_scope, - CORBA::Flags op_flags, - const char *pattern, - CORBA::NVList_ptr &values, - CORBA::Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8 typedef CORBA_Context_ptr _ptr_type; typedef CORBA_Context_var _var_type; @@ -170,126 +130,8 @@ private: CORBA_Context_ptr &ptr_; }; -class CORBA_ContextList -{ - // = TITLE - // ContextList definition taken from CORBA v2.3a Dec 1998 - // - // = DESCRIPTION - // Maintains a list of strings for Contexts. -public: - CORBA_ContextList (void); - // constructor - - CORBA_ContextList (CORBA::ULong len, - char* *ctx_list); - // Constructor - initialize given a length and an array of - // strings. - - ~CORBA_ContextList (void); - // destructor - - CORBA::ULong count (); - // return the number of elements - - CORBA_ContextList_ptr _duplicate (void); - - void _destroy (void); - - static CORBA_ContextList_ptr _nil (); - - void add (char *ctx); - // add a string to the list - - void add_consume (char *ctx); - // add and consume a string to the list - - char *item (CORBA::ULong index, - CORBA_Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - // return the typecode at index i. Raises the "Bounds" exception - - void remove (CORBA::ULong index, - CORBA_Environment &ACE_TRY_ENV = - CORBA::default_environment ()); - // remove the typecode at index i. Raises the "Bounds" exception - -#if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8 - typedef CORBA::ContextList_ptr _ptr_type; - typedef CORBA::ContextList_var _var_type; -#endif /* __GNUC__ */ - // Useful for template programming. - -private: - // not allowed - CORBA_ContextList (const CORBA_ContextList &); - CORBA_ContextList &operator= (const CORBA_ContextList &); - - ACE_Atomic_Op<ACE_SYNCH_MUTEX, CORBA::ULong> ref_count_; - // Reference counter. - - ACE_Unbounded_Queue<char *> ctx_list_; - // internal list of typecodes -}; - -class TAO_Export CORBA_ContextList_var -{ -public: - CORBA_ContextList_var (void); // default constructor - CORBA_ContextList_var (CORBA_ContextList_ptr); - CORBA_ContextList_var (const CORBA_ContextList_var &); // copy constructor - ~CORBA_ContextList_var (void); // destructor - - CORBA_ContextList_var &operator= (CORBA_ContextList_ptr); - CORBA_ContextList_var &operator= (const CORBA_ContextList_var &); - CORBA_ContextList_ptr operator-> (void) const; - - operator const CORBA_ContextList_ptr &() const; - operator CORBA_ContextList_ptr &(); - // in, inout, out, _retn - CORBA_ContextList_ptr in (void) const; - CORBA_ContextList_ptr &inout (void); - CORBA_ContextList_ptr &out (void); - CORBA_ContextList_ptr _retn (void); - CORBA_ContextList_ptr ptr (void) const; - -private: - CORBA_ContextList_ptr ptr_; -}; - -class TAO_Export CORBA_ContextList_out -{ - // = TITLE - // The T_out class for ContextList - // - // = DESCRIPTION - // As any other pseudo object ContextList must have a T_out class, - // the interface an semantics are specified in the CORBA spec. - // - // = NOTE - // We use CORBA_ContextList_ptr as the _ptr type instead of - // CORBA::ContextList_ptr, this is an attempt to reduced the cyclic - // dependencies in TAO. - // -public: - CORBA_ContextList_out (CORBA_ContextList_ptr &); - CORBA_ContextList_out (CORBA_ContextList_var &); - CORBA_ContextList_out (CORBA_ContextList_out &); - CORBA_ContextList_out &operator= (CORBA_ContextList_out &); - CORBA_ContextList_out &operator= (const CORBA_ContextList_var &); - CORBA_ContextList_out &operator= (CORBA_ContextList_ptr); - operator CORBA_ContextList_ptr &(); - CORBA_ContextList_ptr &ptr (void); - CORBA_ContextList_ptr operator-> (void); - -private: - CORBA_ContextList_ptr &ptr_; -}; - #if defined (__ACE_INLINE__) # include "tao/Context.i" #endif /* __ACE_INLINE__ */ -#endif /* TAO_HAS_MINIMUM_CORBA */ - #endif /* TAO_CONTEXT_H */ |