TAO_IOP::TAO_IOR_Manipulation Interface Reference

Allows applications to manipulate object references. More...

import "IOR.pidl";

Inheritance diagram for TAO_IOP::TAO_IOR_Manipulation:

Inheritance graph
[legend]
Collaboration diagram for TAO_IOP::TAO_IOR_Manipulation:

Collaboration graph
[legend]
List of all members.

Public Types

typedef sequence< ObjectIORList
typedef TAO_IOR_Manipulation_ptr _ptr_type
typedef TAO_IOR_Manipulation_var _var_type
typedef TAO_VarSeq_Var_T<
IORList
IORList_var
typedef TAO_Seq_Out_T< IORListIORList_out

Public Member Functions

Object merge_iors (in IORList iors) raises (EmptyProfileList,Duplicate,Invalid_IOR)
Object add_profiles (in Object ior1, in Object ior2) raises (EmptyProfileList, Duplicate, Invalid_IOR)
Object remove_profiles (in Object ior1, in Object ior2) raises (Invalid_IOR, EmptyProfileList, NotFound)
boolean set_property (in TAO_IOR_Property prop, in Object ior) raises (Invalid_IOR, Duplicate)
boolean set_primary (in TAO_IOR_Property prop, in Object ior1, in Object ior2) raises (Invalid_IOR, Duplicate, MultiProfileList, NotFound)
boolean remove_primary_tag (in TAO_IOR_Property prop, in Object ior)
Object get_primary (in TAO_IOR_Property prop, in Object ior) raises (NotFound)
boolean is_primary_set (in TAO_IOR_Property prop, in Object ior)
unsigned long is_in_ior (in Object ior1, in Object ior2) raises (NotFound)
unsigned long get_profile_count (in Object ior) raises (EmptyProfileList)
virtual CORBA::Object_ptr merge_iors (const::TAO_IOP::TAO_IOR_Manipulation::IORList &iors)=0 throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::Duplicate, ::TAO_IOP::Invalid_IOR )
virtual CORBA::Object_ptr add_profiles (::CORBA::Object_ptr ior1,::CORBA::Object_ptr ior2)=0 throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::Duplicate, ::TAO_IOP::Invalid_IOR )
virtual CORBA::Object_ptr remove_profiles (::CORBA::Object_ptr ior1,::CORBA::Object_ptr ior2)=0 throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::NotFound )
virtual CORBA::Boolean set_property (::TAO_IOP::TAO_IOR_Property_ptr prop,::CORBA::Object_ptr ior)=0 throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::Duplicate )
virtual CORBA::Boolean set_primary (::TAO_IOP::TAO_IOR_Property_ptr prop,::CORBA::Object_ptr ior1,::CORBA::Object_ptr ior2)=0 throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::Duplicate, ::TAO_IOP::MultiProfileList, ::TAO_IOP::NotFound )
virtual CORBA::Boolean remove_primary_tag (::TAO_IOP::TAO_IOR_Property_ptr prop,::CORBA::Object_ptr ior)=0 throw ( CORBA::SystemException )
virtual CORBA::Object_ptr get_primary (::TAO_IOP::TAO_IOR_Property_ptr prop,::CORBA::Object_ptr ior)=0 throw ( CORBA::SystemException, ::TAO_IOP::NotFound )
virtual CORBA::Boolean is_primary_set (::TAO_IOP::TAO_IOR_Property_ptr prop,::CORBA::Object_ptr ior)=0 throw ( CORBA::SystemException )
virtual CORBA::ULong is_in_ior (::CORBA::Object_ptr ior1,::CORBA::Object_ptr ior2)=0 throw ( CORBA::SystemException, ::TAO_IOP::NotFound )
virtual CORBA::ULong get_profile_count (::CORBA::Object_ptr ior)=0 throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList )
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

TAO_IOR_Manipulation_ptr _duplicate (TAO_IOR_Manipulation_ptr obj)
void _tao_release (TAO_IOR_Manipulation_ptr obj)
TAO_IOR_Manipulation_ptr _narrow (CORBA::Object_ptr obj)
TAO_IOR_Manipulation_ptr _unchecked_narrow (CORBA::Object_ptr obj)
TAO_IOR_Manipulation_ptr _nil (void)
void _tao_any_destructor (void *)

Static Public Attributes

::CORBA::TypeCode_ptr const  _tc_IORList

Protected Member Functions

 TAO_IOR_Manipulation (void)
virtual ~TAO_IOR_Manipulation (void)

Private Member Functions

 TAO_IOR_Manipulation (const TAO_IOR_Manipulation &)
void operator= (const TAO_IOR_Manipulation &)

Detailed Description

Allows applications to manipulate object references.

Manipulating Object References. While this interface does not assume the use of CORBA complient IOPs, the IOP termonology is used throughout. Object references (Object) are used since they encapsulate the notion of object references and IORs. Note, an IOR contains one or more profiles and a profile can be considered to represent the location or route to a specific instance of an object. A profile may also contain supplimentary information useful for differrent services such as security. All Object references may have multiple profiles

Definition at line 120 of file IOR.pidl.


Member Typedef Documentation

typedef TAO_IOR_Manipulation_ptr TAO_IOP::TAO_IOR_Manipulation::_ptr_type
 

Reimplemented from CORBA::Object.

Definition at line 512 of file IORC.h.

typedef TAO_IOR_Manipulation_var TAO_IOP::TAO_IOR_Manipulation::_var_type
 

Reimplemented from CORBA::Object.

Definition at line 513 of file IORC.h.

typedef sequence<Object> TAO_IOP::TAO_IOR_Manipulation::IORList
 

Definition at line 122 of file IOR.pidl.

typedef TAO_Seq_Out_T< IORList > TAO_IOP::TAO_IOR_Manipulation::IORList_out
 

Definition at line 555 of file IORC.h.

typedef TAO_VarSeq_Var_T< IORList > TAO_IOP::TAO_IOR_Manipulation::IORList_var
 

Definition at line 549 of file IORC.h.


Constructor & Destructor Documentation

TAO_IOP::TAO_IOR_Manipulation::TAO_IOR_Manipulation void   )  [protected]
 

Definition at line 809 of file IORC.cpp.

00810 {}

TAO_IOP::TAO_IOR_Manipulation::~TAO_IOR_Manipulation void   )  [protected, virtual]
 

Definition at line 812 of file IORC.cpp.

00813 {}

TAO_IOP::TAO_IOR_Manipulation::TAO_IOR_Manipulation const TAO_IOR_Manipulation  )  [private]
 


Member Function Documentation

TAO_IOP::TAO_IOR_Manipulation_ptr TAO_IOP::TAO_IOR_Manipulation::_duplicate TAO_IOR_Manipulation_ptr  obj  )  [static]
 

Definition at line 858 of file IORC.cpp.

References CORBA::Object::_add_ref(), and TAO_IOP::TAO_IOR_Manipulation_ptr.

Referenced by operator<<=().

00859 {
00860   if (! ::CORBA::is_nil (obj))
00861     {
00862       obj->_add_ref ();
00863     }
00864 
00865   return obj;
00866 }

const char * TAO_IOP::TAO_IOR_Manipulation::_interface_repository_id void   )  const [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 903 of file IORC.cpp.

00904 {
00905   return "IDL:TAO_IOP/TAO_IOR_Manipulation:1.0";
00906 }

CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::_is_a const char *  type_id  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 875 of file IORC.cpp.

References ACE_OS::strcmp().

00879 {
00880   if (
00881       !ACE_OS::strcmp (
00882           value,
00883           "IDL:TAO_IOP/TAO_IOR_Manipulation:1.0"
00884         ) ||
00885       !ACE_OS::strcmp (
00886           value,
00887           "IDL:omg.org/CORBA/LocalObject:1.0"
00888         ) ||
00889       !ACE_OS::strcmp (
00890           value,
00891           "IDL:omg.org/CORBA/Object:1.0"
00892         )
00893     )
00894     {
00895       return true; // success using local knowledge
00896     }
00897   else
00898     {
00899       return false;
00900     }
00901 }

TAO_IOP::TAO_IOR_Manipulation_ptr TAO_IOP::TAO_IOR_Manipulation::_narrow CORBA::Object_ptr  obj  )  [static]
 

Reimplemented from CORBA::Object.

Definition at line 824 of file IORC.cpp.

References CORBA::is_nil(), and TAO_IOP::TAO_IOR_Manipulation_ptr.

00828 {
00829   if (CORBA::is_nil (_tao_objref))
00830     {
00831       return TAO_IOR_Manipulation::_nil ();
00832     }
00833 
00834   TAO_IOR_Manipulation_ptr proxy =
00835     dynamic_cast<TAO_IOR_Manipulation_ptr> (_tao_objref);
00836 
00837   return TAO_IOR_Manipulation::_duplicate (proxy);
00838 }

TAO_IOR_Manipulation_ptr TAO_IOP::TAO_IOR_Manipulation::_nil void   )  [inline, static]
 

Reimplemented from CORBA::Object.

Definition at line 530 of file IORC.h.

References TAO_IOP::TAO_IOR_Manipulation_ptr.

00531     {
00532       return static_cast<TAO_IOR_Manipulation_ptr> (0);
00533     }

void TAO_IOP::TAO_IOR_Manipulation::_tao_any_destructor void *   )  [static]
 

Reimplemented from CORBA::Object.

Definition at line 816 of file IORC.cpp.

00817 {
00818   TAO_IOR_Manipulation *_tao_tmp_pointer =
00819     static_cast<TAO_IOR_Manipulation *> (_tao_void_pointer);
00820   ::CORBA::release (_tao_tmp_pointer);
00821 }

void TAO_IOP::TAO_IOR_Manipulation::_tao_release TAO_IOR_Manipulation_ptr  obj  )  [static]
 

Definition at line 869 of file IORC.cpp.

References TAO_IOP::TAO_IOR_Manipulation_ptr.

00870 {
00871   ::CORBA::release (obj);
00872 }

TAO_IOP::TAO_IOR_Manipulation_ptr TAO_IOP::TAO_IOR_Manipulation::_unchecked_narrow CORBA::Object_ptr  obj  )  [static]
 

Definition at line 841 of file IORC.cpp.

References CORBA::is_nil(), and TAO_IOP::TAO_IOR_Manipulation_ptr.

00845 {
00846   if (CORBA::is_nil (_tao_objref))
00847     {
00848       return TAO_IOR_Manipulation::_nil ();
00849     }
00850 
00851   TAO_IOR_Manipulation_ptr proxy =
00852     dynamic_cast<TAO_IOR_Manipulation_ptr> (_tao_objref);
00853 
00854   return TAO_IOR_Manipulation::_duplicate (proxy);
00855 }

virtual CORBA::Object_ptr TAO_IOP::TAO_IOR_Manipulation::add_profiles ::CORBA::Object_ptr  ior1,
::CORBA::Object_ptr  ior2
throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::Duplicate, ::TAO_IOP::Invalid_IOR ) [pure virtual]
 

Object TAO_IOP::TAO_IOR_Manipulation::add_profiles in Object  ior1,
in Object  ior2
raises (EmptyProfileList, Duplicate, Invalid_IOR)
 

virtual CORBA::Object_ptr TAO_IOP::TAO_IOR_Manipulation::get_primary ::TAO_IOP::TAO_IOR_Property_ptr  prop,
::CORBA::Object_ptr  ior
throw ( CORBA::SystemException, ::TAO_IOP::NotFound ) [pure virtual]
 

Object TAO_IOP::TAO_IOR_Manipulation::get_primary in TAO_IOR_Property  prop,
in Object  ior
raises (NotFound)
 

virtual CORBA::ULong TAO_IOP::TAO_IOR_Manipulation::get_profile_count ::CORBA::Object_ptr  ior  )  throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList ) [pure virtual]
 

unsigned long TAO_IOP::TAO_IOR_Manipulation::get_profile_count in Object  ior  )  raises (EmptyProfileList)
 

virtual CORBA::ULong TAO_IOP::TAO_IOR_Manipulation::is_in_ior ::CORBA::Object_ptr  ior1,
::CORBA::Object_ptr  ior2
throw ( CORBA::SystemException, ::TAO_IOP::NotFound ) [pure virtual]
 

unsigned long TAO_IOP::TAO_IOR_Manipulation::is_in_ior in Object  ior1,
in Object  ior2
raises (NotFound)
 

virtual CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::is_primary_set ::TAO_IOP::TAO_IOR_Property_ptr  prop,
::CORBA::Object_ptr  ior
throw ( CORBA::SystemException ) [pure virtual]
 

boolean TAO_IOP::TAO_IOR_Manipulation::is_primary_set in TAO_IOR_Property  prop,
in Object  ior
 

CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::marshal TAO_OutputCDR cdr  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 909 of file IORC.cpp.

00910 {
00911   return false;
00912 }

virtual CORBA::Object_ptr TAO_IOP::TAO_IOR_Manipulation::merge_iors const::TAO_IOP::TAO_IOR_Manipulation::IORList &  iors  )  throw ( CORBA::SystemException, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::Duplicate, ::TAO_IOP::Invalid_IOR ) [pure virtual]
 

Object TAO_IOP::TAO_IOR_Manipulation::merge_iors in IORList  iors  )  raises (EmptyProfileList,Duplicate,Invalid_IOR)
 

void TAO_IOP::TAO_IOR_Manipulation::operator= const TAO_IOR_Manipulation  )  [private]
 

virtual CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::remove_primary_tag ::TAO_IOP::TAO_IOR_Property_ptr  prop,
::CORBA::Object_ptr  ior
throw ( CORBA::SystemException ) [pure virtual]
 

boolean TAO_IOP::TAO_IOR_Manipulation::remove_primary_tag in TAO_IOR_Property  prop,
in Object  ior
 

If any of the IOR's within the IOGR has a primary tag, just remove it. Return zero if no primary found.

virtual CORBA::Object_ptr TAO_IOP::TAO_IOR_Manipulation::remove_profiles ::CORBA::Object_ptr  ior1,
::CORBA::Object_ptr  ior2
throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::EmptyProfileList, ::TAO_IOP::NotFound ) [pure virtual]
 

Object TAO_IOP::TAO_IOR_Manipulation::remove_profiles in Object  ior1,
in Object  ior2
raises (Invalid_IOR, EmptyProfileList, NotFound)
 

virtual CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::set_primary ::TAO_IOP::TAO_IOR_Property_ptr  prop,
::CORBA::Object_ptr  ior1,
::CORBA::Object_ptr  ior2
throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::Duplicate, ::TAO_IOP::MultiProfileList, ::TAO_IOP::NotFound ) [pure virtual]
 

boolean TAO_IOP::TAO_IOR_Manipulation::set_primary in TAO_IOR_Property  prop,
in Object  ior1,
in Object  ior2
raises (Invalid_IOR, Duplicate, MultiProfileList, NotFound)
 

virtual CORBA::Boolean TAO_IOP::TAO_IOR_Manipulation::set_property ::TAO_IOP::TAO_IOR_Property_ptr  prop,
::CORBA::Object_ptr  ior
throw ( CORBA::SystemException, ::TAO_IOP::Invalid_IOR, ::TAO_IOP::Duplicate ) [pure virtual]
 

boolean TAO_IOP::TAO_IOR_Manipulation::set_property in TAO_IOR_Property  prop,
in Object  ior
raises (Invalid_IOR, Duplicate)
 


Member Data Documentation

CORBA::TypeCode_ptr const TAO_IOP::TAO_IOR_Manipulation::_tc_IORList [static]
 

Initial value:

  &_tao_tc_TAO_IOP_TAO_IOR_Manipulation_IORList

Definition at line 220 of file IORA.cpp.


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