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 (void) const
CORBA::Context_ptr parent (void) 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 73 of file Context.h.


Member Typedef Documentation

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

Definition at line 113 of file Context.h.

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

Definition at line 111 of file Context.h.

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

Definition at line 112 of file Context.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::Context::Context void   ) 
 

Definition at line 19 of file Context.cpp.

00020   : refcount_ (1)
00021 {
00022 }

CORBA::Context::~Context void   ) 
 

Definition at line 24 of file Context.cpp.

00025 {
00026 }


Member Function Documentation

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

Definition at line 35 of file Context.cpp.

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

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

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

Definition at line 29 of file Context.cpp.

00030 {
00031   return ++refcount_;
00032 }

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 void   )  const
 

Definition at line 46 of file Context.cpp.

00047 {
00048   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00049 }

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

Definition at line 58 of file Context.cpp.

00060 {
00061   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00062 }

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

Definition at line 78 of file Context.cpp.

00079 {
00080   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00081 }

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

Definition at line 84 of file Context.cpp.

00088 {
00089   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00090 }

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

Definition at line 52 of file Context.cpp.

00053 {
00054   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00055 }

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

Definition at line 65 of file Context.cpp.

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

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

Definition at line 72 of file Context.cpp.

00073 {
00074   throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO);
00075 }


Member Data Documentation

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

Reference counter.

Definition at line 117 of file Context.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:37:48 2008 for TAO_DynamicInterface by doxygen 1.3.6