Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CORBA::DomainManager Interface Reference

#include <DomainC.h>

Inheritance diagram for CORBA::DomainManager:

Inheritance graph
[legend]
Collaboration diagram for CORBA::DomainManager:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DomainManager_ptr _ptr_type
typedef DomainManager_var _var_type

Public Methods

Policy get_domain_policy (in PolicyType policy_type)
virtual::CORBA::Policy_ptr get_domain_policy (CORBA::PolicyType policy_type ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw ( CORBA::SystemException )
virtual CORBA::Boolean _is_a (const CORBA::Char *type_id ACE_ENV_ARG_DECL_WITH_DEFAULTS)
virtual void * _tao_QueryInterface (ptr_arith_t type)
 Downcasting this object pointer to some other derived class. This QueryInterface stuff only work for local object. More...

virtual const char * _interface_repository_id (void) const
 The repository ID for the most derived class, this is an implementation method and does no remote invocations! More...


Static Public Methods

DomainManager_ptr _duplicate (DomainManager_ptr obj)
DomainManager_ptr _narrow (CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS)
DomainManager_ptr _unchecked_narrow (CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS)
DomainManager_ptr _nil (void)
 Return a NULL object. More...

void _tao_any_destructor (void *)
 Used in the implementation of CORBA::Any. More...


Static Public Attributes

int _tao_class_id = 0
 Address of this variable used in _unchecked_narrow(). More...


Protected Methods

 DomainManager (int collocated=0)
virtual void CORBA_DomainManager_setup_collocation (int collocated)
 DomainManager (TAO_Stub *objref, CORBA::Boolean _tao_collocated=0, TAO_Abstract_ServantBase *servant=0)
virtual ~DomainManager (void)

Private Methods

 DomainManager (const DomainManager &)
void operator= (const DomainManager &)

Private Attributes

_TAO_DomainManager_Proxy_Brokerthe_TAO_DomainManager_Proxy_Broker_

Friends

class _TAO_DomainManager_Remote_Proxy_Impl
class _TAO_DomainManager_ThruPOA_Proxy_Impl
class _TAO_DomainManager_Direct_Proxy_Impl

Member Typedef Documentation

typedef DomainManager_ptr CORBA::DomainManager::_ptr_type
 

Reimplemented from CORBA_Object.

Definition at line 161 of file DomainC.h.

typedef DomainManager_var CORBA::DomainManager::_var_type
 

Reimplemented from CORBA_Object.

Definition at line 162 of file DomainC.h.


Constructor & Destructor Documentation

CORBA::DomainManager::DomainManager int    collocated = 0 [protected]
 

Definition at line 624 of file DomainC.cpp.

References CORBA_DomainManager_setup_collocation.

Referenced by _tao_any_destructor, and _tao_QueryInterface.

00625 {
00626   this->CORBA_DomainManager_setup_collocation (collocated);
00627 }

ACE_INLINE CORBA::DomainManager::DomainManager TAO_Stub   objref,
CORBA::Boolean    _tao_collocated = 0,
TAO_Abstract_ServantBase   servant = 0
[protected]
 

Definition at line 27 of file DomainC.i.

References CORBA_DomainManager_setup_collocation.

00032   : CORBA_Object (objref, _tao_collocated, servant)
00033 {
00034   this->CORBA_DomainManager_setup_collocation (_tao_collocated);
00035 }

CORBA::DomainManager::~DomainManager void    [protected, virtual]
 

Definition at line 629 of file DomainC.cpp.

00630 {}

CORBA::DomainManager::DomainManager const DomainManager &    [private]
 


Member Function Documentation

CORBA::DomainManager_ptr CORBA::DomainManager::_duplicate DomainManager_ptr    obj [static]
 

Definition at line 731 of file DomainC.cpp.

References CORBA_Object::_add_ref, CORBA::DomainManager_ptr, and CORBA::is_nil.

Referenced by CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_allocate_buffer, CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList, operator<<=, CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator=, and tao_CORBA_DomainManager_duplicate.

00732 {
00733   if (!CORBA::is_nil (obj))
00734     obj->_add_ref ();
00735   return obj;
00736 }

const char * CORBA::DomainManager::_interface_repository_id void    const [virtual]
 

The repository ID for the most derived class, this is an implementation method and does no remote invocations!

Reimplemented from CORBA_Object.

Definition at line 764 of file DomainC.cpp.

00765 {
00766   return "IDL:omg.org/CORBA/DomainManager:1.0";
00767 }

virtual CORBA::Boolean CORBA::DomainManager::_is_a const CORBA::Char *type_id    ACE_ENV_ARG_DECL_WITH_DEFAULTS [virtual]
 

CORBA::DomainManager_ptr CORBA::DomainManager::_narrow CORBA::Object_ptr obj    ACE_ENV_ARG_DECL_WITH_DEFAULTS [static]
 

Definition at line 649 of file DomainC.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and CORBA::is_nil.

Referenced by CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_downcast, and tao_CORBA_DomainManager_narrow.

00653 {
00654   if (CORBA::is_nil (obj))
00655     return DomainManager::_nil ();
00656   if (! obj->_is_local ())
00657     {
00658       CORBA::Boolean is_a = obj->_is_a ("IDL:omg.org/CORBA/DomainManager:1.0" ACE_ENV_ARG_PARAMETER);
00659       ACE_CHECK_RETURN (DomainManager::_nil ());
00660       if (is_a == 0)
00661         return DomainManager::_nil ();
00662     }
00663   return DomainManager::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER);
00664 }

DomainManager_ptr CORBA::DomainManager::_nil void    [inline, static]
 

Return a NULL object.

Reimplemented from CORBA_Object.

Definition at line 180 of file DomainC.h.

References CORBA::DomainManager_ptr.

Referenced by CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_deallocate_buffer, CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::_shrink_buffer, CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::allocbuf, CORBA::_TAO_Unbounded_Object_Sequence_CORBA_DomainManagerList::operator=, operator>>=, and tao_CORBA_DomainManager_nil.

00181       {
00182         return (DomainManager_ptr)0;
00183       }

void CORBA::DomainManager::_tao_any_destructor void *    [static]
 

Used in the implementation of CORBA::Any.

Reimplemented from CORBA_Object.

Definition at line 643 of file DomainC.cpp.

References DomainManager, and CORBA::release.

Referenced by operator<<=, and operator>>=.

00644 {
00645   DomainManager *tmp = ACE_static_cast (DomainManager*, _tao_void_pointer);
00646   CORBA::release (tmp);
00647 }

void * CORBA::DomainManager::_tao_QueryInterface ptr_arith_t    type [virtual]
 

Downcasting this object pointer to some other derived class. This QueryInterface stuff only work for local object.

Reimplemented from CORBA_Object.

Definition at line 748 of file DomainC.cpp.

References CORBA_Object::_add_ref, _tao_class_id, ACE_NESTED_CLASS, DomainManager, and ptr_arith_t.

00749 {
00750   void *retv = 0;
00751   if (type == ACE_reinterpret_cast
00752     (ptr_arith_t,
00753       &ACE_NESTED_CLASS (::CORBA, DomainManager)::_tao_class_id))
00754     retv = ACE_reinterpret_cast (void*, this);
00755   else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_tao_class_id))
00756     retv = ACE_reinterpret_cast (void *,
00757       ACE_static_cast (CORBA::Object_ptr, this));
00758     
00759   if (retv)
00760     this->_add_ref ();
00761   return retv;
00762 }

CORBA::DomainManager_ptr CORBA::DomainManager::_unchecked_narrow CORBA::Object_ptr obj    ACE_ENV_ARG_DECL_WITH_DEFAULTS [static]
 

Definition at line 667 of file DomainC.cpp.

References TAO_Stub::_incr_refcnt, ACE_ENV_ARG_DECL_NOT_USED, ACE_NEW_RETURN, CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer, CORBA::DomainManager_ptr, CORBA::is_nil, ptr_arith_t, and TAO_Stub::servant_orb_var.

Referenced by operator>>.

00671 {
00672   if (CORBA::is_nil (obj))
00673     return DomainManager::_nil ();
00674   if (! obj->_is_local ())
00675     {
00676       TAO_Stub* stub = obj->_stubobj ();
00677       if (stub)
00678         stub->_incr_refcnt ();
00679       DomainManager_ptr default_proxy = DomainManager::_nil ();
00680 
00681       if (
00682           !CORBA::is_nil (stub->servant_orb_var ().ptr ()) &&
00683           stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects () &&
00684           obj->_is_collocated () &&
00685           CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer != 0
00686         )
00687         {
00688           ACE_NEW_RETURN (
00689               default_proxy,
00690               ::CORBA::DomainManager (
00691                   stub,
00692                   1,
00693                   obj->_servant ()
00694                 ),
00695               DomainManager::_nil ()
00696             );
00697         }
00698       
00699       if (CORBA::is_nil (default_proxy))
00700         {
00701           ACE_NEW_RETURN (
00702               default_proxy,
00703               ::CORBA::DomainManager (
00704                   stub,
00705                   0,
00706                   obj->_servant ()
00707                 ),
00708               DomainManager::_nil ()
00709             );
00710         }
00711       
00712       return default_proxy;
00713     }
00714   else 
00715     return
00716       ACE_reinterpret_cast
00717         (
00718           DomainManager_ptr,
00719             obj->_tao_QueryInterface
00720               (
00721                 ACE_reinterpret_cast
00722                   (
00723                     ptr_arith_t,
00724                     &DomainManager::_tao_class_id
00725                   )
00726               )
00727         );
00728 }

void CORBA::DomainManager::CORBA_DomainManager_setup_collocation int    collocated [protected, virtual]
 

Definition at line 633 of file DomainC.cpp.

References the_TAO_DomainManager_Proxy_Broker_.

Referenced by DomainManager.

00634 {
00635   if (collocated)
00636     this->the_TAO_DomainManager_Proxy_Broker_ =
00637       ::CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer (this);
00638   else
00639     this->the_TAO_DomainManager_Proxy_Broker_ =
00640       ::CORBA::_TAO_DomainManager_Remote_Proxy_Broker::the_TAO_DomainManager_Remote_Proxy_Broker ();
00641 }

CORBA::Policy_ptr CORBA::DomainManager::get_domain_policy CORBA::PolicyType policy_type    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw ( CORBA::SystemException )
 

Definition at line 769 of file DomainC.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, and ACE_ENV_ARG_PARAMETER.

00776 {
00777   _TAO_DomainManager_Proxy_Impl &proxy = 
00778     this->the_TAO_DomainManager_Proxy_Broker_->select_proxy (this ACE_ENV_ARG_PARAMETER);
00779   ACE_CHECK_RETURN (0);
00780   
00781   return proxy.get_domain_policy (
00782       this,
00783       policy_type ACE_ENV_ARG_PARAMETER
00784     );
00785 }

Policy CORBA::DomainManager::get_domain_policy in PolicyType    policy_type
 

void CORBA::DomainManager::operator= const DomainManager &    [private]
 


Friends And Related Function Documentation

friend class _TAO_DomainManager_Direct_Proxy_Impl [friend]
 

Definition at line 222 of file DomainC.h.

friend class _TAO_DomainManager_Remote_Proxy_Impl [friend]
 

Definition at line 220 of file DomainC.h.

friend class _TAO_DomainManager_ThruPOA_Proxy_Impl [friend]
 

Definition at line 221 of file DomainC.h.


Member Data Documentation

int CORBA::DomainManager::_tao_class_id = 0 [static]
 

Address of this variable used in _unchecked_narrow().

Reimplemented from CORBA_Object.

Definition at line 50 of file DomainC.cpp.

Referenced by _tao_QueryInterface.

_TAO_DomainManager_Proxy_Broker* CORBA::DomainManager::the_TAO_DomainManager_Proxy_Broker_ [private]
 

Definition at line 205 of file DomainC.h.

Referenced by CORBA_DomainManager_setup_collocation.


The documentation for this interface was generated from the following files:
Generated on Mon Jun 16 15:51:36 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002