#include <Context.h>
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 | |
static Context * | _duplicate (Context *) |
static Context * | _nil (void) |
Private Attributes | |
ACE_Atomic_Op< TAO_SYNCH_MUTEX, CORBA::ULong > | refcount_ |
Reference counter. |
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 71 of file Context.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::Context::Context | ( | void | ) |
CORBA::Context::~Context | ( | void | ) |
CORBA::ULong CORBA::Context::_decr_refcnt | ( | void | ) |
Definition at line 35 of file Context.cpp.
References refcount_.
Referenced by TAO_Dynamic_Adapter_Impl::context_release().
00036 { 00037 CORBA::ULong const new_count = --this->refcount_; 00038 00039 if (new_count == 0) 00040 delete this; 00041 00042 return new_count; 00043 }
CORBA::ULong CORBA::Context::_incr_refcnt | ( | void | ) |
Definition at line 29 of file Context.cpp.
References refcount_.
00030 { 00031 return ++refcount_; 00032 }
ACE_INLINE CORBA::Context_ptr CORBA::Context::_nil | ( | void | ) | [static] |
const char * CORBA::Context::context_name | ( | void | ) | const |
Definition at line 46 of file Context.cpp.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
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.
References CORBA::COMPLETED_NO, and TAO::VMCID.
00073 { 00074 throw ::CORBA::NO_IMPLEMENT (TAO::VMCID, CORBA::COMPLETED_NO); 00075 }
Reference counter.
Definition at line 115 of file Context.h.
Referenced by _decr_refcnt(), and _incr_refcnt().