Public Types | Public Member Functions | Static Public Member Functions | Private Attributes

CORBA::Context Class Reference

CORBA::Context. More...

#include <Context.h>

Collaboration diagram for CORBA::Context:
Collaboration graph
[legend]

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

static Context_duplicate (Context *)
static 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 71 of file Context.h.


Member Typedef Documentation

Definition at line 111 of file Context.h.

Definition at line 109 of file Context.h.

Definition at line 110 of file Context.h.


Constructor & Destructor Documentation

CORBA::Context::Context ( void   ) 

Definition at line 19 of file Context.cpp.

  : refcount_ (1)
{
}

CORBA::Context::~Context ( void   ) 

Definition at line 24 of file Context.cpp.

{
}


Member Function Documentation

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

Definition at line 35 of file Context.cpp.

{
  CORBA::ULong const new_count = --this->refcount_;

  if (new_count == 0)
    delete this;

  return new_count;
}

static Context* CORBA::Context::_duplicate ( Context  )  [static]
CORBA::ULong CORBA::Context::_incr_refcnt ( void   ) 

Definition at line 29 of file Context.cpp.

{
  return ++refcount_;
}

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

Definition at line 57 of file Context.inl.

{
  return (CORBA::Context_ptr)0;
}

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

Definition at line 46 of file Context.cpp.

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

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

Definition at line 58 of file Context.cpp.

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

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

Definition at line 78 of file Context.cpp.

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

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.

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

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

Definition at line 52 of file Context.cpp.

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

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

Definition at line 65 of file Context.cpp.

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

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

Definition at line 72 of file Context.cpp.

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


Member Data Documentation

Reference counter.

Definition at line 115 of file Context.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines