CORBA::Context Class Reference

CORBA::Context. More...

#include <Context.h>

List of all members.

Public Types

typedef CORBA::Context_ptr _ptr_type
typedef CORBA::Context_var _var_type
typedef CORBA::Context_out _out_type

Public Member Functions

 Context (void)
 ~Context (void)
CORBA::ULong _incr_refcnt (void)
CORBA::ULong _decr_refcnt (void)
const char * context_name () const
CORBA::Context_ptr parent () const
void create_child (const char *child_ctx_name, CORBA::Context_out child_ctx)
void set_one_value (const char *propname, const CORBA::Any &propvalue)
void set_values (CORBA::NVList_ptr values)
void delete_values (const char *propname)
void get_values (const char *start_scope, CORBA::Flags op_flags, const char *pattern, CORBA::NVList_ptr &values)

Static Public Member Functions

Context_duplicate (Context *)
Context_nil (void)

Private Attributes

ACE_Atomic_Op< TAO_SYNCH_MUTEX,
CORBA::ULong
refcount_
 Reference counter.


Detailed Description

CORBA::Context.

TAO's minimal implementation of the Context interface. Since Contexts are inherently un-typesafe, there use is deprecated and the feature may eventaully disappear from CORBA. It is implemented only to make the arg list of CORBA::Object::_create_request() compliant. The only (pointer) value that should be passed is 0.

Definition at line 76 of file Context.h.


Member Typedef Documentation

typedef CORBA::Context_out CORBA::Context::_out_type
 

Definition at line 122 of file Context.h.

typedef CORBA::Context_ptr CORBA::Context::_ptr_type
 

Definition at line 120 of file Context.h.

typedef CORBA::Context_var CORBA::Context::_var_type
 

Definition at line 121 of file Context.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::Context::Context void   ) 
 

Definition at line 20 of file Context.cpp.

00021   : refcount_ (1)
00022 {
00023 }

CORBA::Context::~Context void   ) 
 

Definition at line 25 of file Context.cpp.

00026 {
00027 }


Member Function Documentation

CORBA::ULong CORBA::Context::_decr_refcnt void   ) 
 

Definition at line 36 of file Context.cpp.

00037 {
00038   const CORBA::ULong new_count = --this->refcount_;
00039 
00040   if (new_count == 0)
00041     delete this;
00042 
00043   return new_count;
00044 }

Context* CORBA::Context::_duplicate Context  )  [static]
 

CORBA::ULong CORBA::Context::_incr_refcnt void   ) 
 

Definition at line 30 of file Context.cpp.

00031 {
00032   return ++refcount_;
00033 }

ACE_INLINE CORBA::Context_ptr CORBA::Context::_nil void   )  [static]
 

Definition at line 57 of file Context.inl.

00058 {
00059   return (CORBA::Context_ptr)0;
00060 }

const char * CORBA::Context::context_name  )  const
 

Definition at line 47 of file Context.cpp.

References ACE_THROW_RETURN.

00048 {
00049   ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (TAO::VMCID,
00050                                          CORBA::COMPLETED_NO),
00051                     0);
00052 }

void CORBA::Context::create_child const char *  child_ctx_name,
CORBA::Context_out  child_ctx
 

Definition at line 63 of file Context.cpp.

References ACE_THROW.

00066 {
00067   ACE_THROW (CORBA::NO_IMPLEMENT (TAO::VMCID,
00068                                   CORBA::COMPLETED_NO));
00069 }

void CORBA::Context::delete_values const char *  propname  ) 
 

Definition at line 89 of file Context.cpp.

References ACE_THROW.

00091 {
00092   ACE_THROW (CORBA::NO_IMPLEMENT (TAO::VMCID,
00093                                   CORBA::COMPLETED_NO));
00094 }

void CORBA::Context::get_values const char *  start_scope,
CORBA::Flags  op_flags,
const char *  pattern,
CORBA::NVList_ptr values
 

Definition at line 97 of file Context.cpp.

References ACE_THROW.

00102 {
00103   ACE_THROW (CORBA::NO_IMPLEMENT (TAO::VMCID,
00104                                   CORBA::COMPLETED_NO));
00105 }

CORBA::Context_ptr CORBA::Context::parent  )  const
 

Definition at line 55 of file Context.cpp.

References ACE_THROW_RETURN.

00056 {
00057   ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (TAO::VMCID,
00058                                          CORBA::COMPLETED_NO),
00059                     0);
00060 }

void CORBA::Context::set_one_value const char *  propname,
const CORBA::Any &  propvalue
 

Definition at line 72 of file Context.cpp.

References ACE_THROW.

00075 {
00076   ACE_THROW (CORBA::NO_IMPLEMENT (TAO::VMCID,
00077                                   CORBA::COMPLETED_NO));
00078 }

void CORBA::Context::set_values CORBA::NVList_ptr  values  ) 
 

Definition at line 81 of file Context.cpp.

References ACE_THROW.

00083 {
00084   ACE_THROW (CORBA::NO_IMPLEMENT (TAO::VMCID,
00085                                   CORBA::COMPLETED_NO));
00086 }


Member Data Documentation

ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong> CORBA::Context::refcount_ [private]
 

Reference counter.

Definition at line 126 of file Context.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:05:06 2006 for TAO_DynamicInterface by doxygen 1.3.6