IORTable::Locator Interface Reference

Callback interface to locate object keys dynamically. More...

import "IORTable.pidl";

Inheritance diagram for IORTable::Locator:

Inheritance graph
[legend]
Collaboration diagram for IORTable::Locator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Locator_ptr _ptr_type
typedef Locator_var _var_type

Public Member Functions

string locate (in string object_key) raises (NotFound)
 Returns an IOR to use for .

virtual char * locate (const char *object_key)=0 throw ( CORBA::SystemException, ::IORTable::NotFound )
virtual CORBA::Boolean _is_a (const char *type_id)
virtual const char * _interface_repository_id (void) const
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)

Static Public Member Functions

Locator_ptr _duplicate (Locator_ptr obj)
void _tao_release (Locator_ptr obj)
Locator_ptr _narrow (CORBA::Object_ptr obj)
Locator_ptr _unchecked_narrow (CORBA::Object_ptr obj)
Locator_ptr _nil (void)

Protected Member Functions

 Locator (void)
virtual ~Locator (void)

Private Member Functions

 Locator (const Locator &)
void operator= (const Locator &)

Detailed Description

Callback interface to locate object keys dynamically.

The application can provide a callback interface to locate object keys dynamically.

Definition at line 73 of file IORTable.pidl.


Member Typedef Documentation

typedef Locator_ptr IORTable::Locator::_ptr_type
 

Reimplemented from CORBA::Object.

Definition at line 323 of file IORTableC.h.

typedef Locator_var IORTable::Locator::_var_type
 

Reimplemented from CORBA::Object.

Definition at line 324 of file IORTableC.h.


Constructor & Destructor Documentation

IORTable::Locator::Locator void   )  [protected]
 

Definition at line 408 of file IORTableC.cpp.

00409 {}

IORTable::Locator::~Locator void   )  [protected, virtual]
 

Definition at line 411 of file IORTableC.cpp.

00412 {}

IORTable::Locator::Locator const Locator  )  [private]
 


Member Function Documentation

IORTable::Locator_ptr IORTable::Locator::_duplicate Locator_ptr  obj  )  [static]
 

Definition at line 449 of file IORTableC.cpp.

References CORBA::Object::_add_ref(), and IORTable::Locator_ptr.

Referenced by TAO_IOR_Table_Impl::set_locator().

00450 {
00451   if (! ::CORBA::is_nil (obj))
00452     {
00453       obj->_add_ref ();
00454     }
00455 
00456   return obj;
00457 }

const char * IORTable::Locator::_interface_repository_id void   )  const [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 494 of file IORTableC.cpp.

00495 {
00496   return "IDL:IORTable/Locator:1.0";
00497 }

CORBA::Boolean IORTable::Locator::_is_a const char *  type_id  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 466 of file IORTableC.cpp.

References ACE_OS::strcmp().

00470 {
00471   if (
00472       !ACE_OS::strcmp (
00473           value,
00474           "IDL:IORTable/Locator:1.0"
00475         ) ||
00476       !ACE_OS::strcmp (
00477           value,
00478           "IDL:omg.org/CORBA/LocalObject:1.0"
00479         ) ||
00480       !ACE_OS::strcmp (
00481           value,
00482           "IDL:omg.org/CORBA/Object:1.0"
00483         )
00484     )
00485     {
00486       return true; // success using local knowledge
00487     }
00488   else
00489     {
00490       return false;
00491     }
00492 }

IORTable::Locator_ptr IORTable::Locator::_narrow CORBA::Object_ptr  obj  )  [static]
 

Reimplemented from CORBA::Object.

Definition at line 415 of file IORTableC.cpp.

References CORBA::is_nil(), and IORTable::Locator_ptr.

00419 {
00420   if (CORBA::is_nil (_tao_objref))
00421     {
00422       return Locator::_nil ();
00423     }
00424 
00425   Locator_ptr proxy =
00426     dynamic_cast<Locator_ptr> (_tao_objref);
00427 
00428   return Locator::_duplicate (proxy);
00429 }

Locator_ptr IORTable::Locator::_nil void   )  [inline, static]
 

Reimplemented from CORBA::Object.

Definition at line 341 of file IORTableC.h.

References IORTable::Locator_ptr.

00342     {
00343       return static_cast<Locator_ptr> (0);
00344     }

void IORTable::Locator::_tao_release Locator_ptr  obj  )  [static]
 

Definition at line 460 of file IORTableC.cpp.

References IORTable::Locator_ptr.

00461 {
00462   ::CORBA::release (obj);
00463 }

IORTable::Locator_ptr IORTable::Locator::_unchecked_narrow CORBA::Object_ptr  obj  )  [static]
 

Definition at line 432 of file IORTableC.cpp.

References CORBA::is_nil(), and IORTable::Locator_ptr.

00436 {
00437   if (CORBA::is_nil (_tao_objref))
00438     {
00439       return Locator::_nil ();
00440     }
00441 
00442   Locator_ptr proxy =
00443     dynamic_cast<Locator_ptr> (_tao_objref);
00444 
00445   return Locator::_duplicate (proxy);
00446 }

virtual char* IORTable::Locator::locate const char *  object_key  )  throw ( CORBA::SystemException, ::IORTable::NotFound ) [pure virtual]
 

string IORTable::Locator::locate in string  object_key  )  raises (NotFound)
 

Returns an IOR to use for .

CORBA::Boolean IORTable::Locator::marshal TAO_OutputCDR cdr  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 500 of file IORTableC.cpp.

00501 {
00502   return false;
00503 }

void IORTable::Locator::operator= const Locator  )  [private]
 


The documentation for this interface was generated from the following files:
Generated on Thu Nov 9 13:07:23 2006 for TAO_IORTable by doxygen 1.3.6