#include <ORB_Table.h>
Collaboration diagram for TAO::ORB_Table:
Public Types | |
typedef ACE_Array_Map< CORBA::String_var, ORB_Core_Ref_Counter, TAO::String_Var_Equal_To > | Table |
typedef Table::key_type | key_type |
typedef Table::data_type | data_type |
typedef Table::value_type | value_type |
typedef Table::size_type | size_type |
typedef Table::iterator | iterator |
Public Member Functions | |
ORB_Table (void) | |
Constructor. | |
TAO_ORB_Core *const * | get_orbs (size_t &num_orbs) |
TAO_ORB_Core * | first_orb (void) |
void | set_default (char const *orb_id) |
void | not_default (char const *orb_id) |
Table * | table (void) |
Accessor to the underlying table_. | |
iterator | begin (void) |
iterator | end (void) |
int | bind (const char *orb_id, TAO_ORB_Core *orb_core) |
TAO_ORB_Core * | find (const char *orb_id) |
int | unbind (const char *orb_id) |
Static Public Member Functions | |
ORB_Table * | instance (void) |
Return a unique instance. | |
Private Member Functions | |
ORB_Table (const ORB_Table &) | |
void | operator= (const ORB_Table &) |
TAO_ORB_Core * | find_i (char const *orb_id) |
void | update_orbs (void) |
Update our list of orbs. | |
Private Attributes | |
TAO_SYNCH_MUTEX | lock_ |
Lock used to synchronize access to the internal state. | |
bool | first_orb_not_default_ |
Table | table_ |
The underlying table. | |
TAO_ORB_Core * | first_orb_ |
The first ORB created by the user. | |
TAO_ORB_Core ** | orbs_ |
List of orbs for get_orbs call. | |
size_t | num_orbs_ |
Number of ORBs in the table. |
CORBA::ORB_init() is supposed to return the same ORB if the user specifies the same ORBid, either in the ORB_init() parameter or in the -ORBid option. This class is used to implement that feature. It is also useful when trying to determine if an object reference is collocated or not.
|
|
|
|
|
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
|
|
|
|
Return |
|
Obtain the first ORB for the |
|
|
|
Return a unique instance.
|
|
Method the ORB invokes to specify that it doesnt want to be the default ORB if there are more than one ORB registered. |
|
|
|
Set the ORB related to the orb_id as the default ORB and not the ORB that is first binded. |
|
Accessor to the underlying table_.
|
|
|
|
Update our list of orbs.
|
|
The first ORB created by the user.
|
|
Variable to check if the first ORB decides not to be the default. |
|
Lock used to synchronize access to the internal state.
|
|
Number of ORBs in the table.
|
|
List of orbs for get_orbs call.
|
|
The underlying table.
|