TAO_Trading_Components_i Class Reference

Set/get methods for references to various interfaces of the trader. More...

#include <Trader.h>

Collaboration diagram for TAO_Trading_Components_i:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Trading_Components_i (TAO_Lockable &locker)
 ~TAO_Trading_Components_i (void)
CosTrading::Lookup_ptr lookup_if (void) const
void lookup_if (CosTrading::Lookup_ptr)
 Set the reference to the Lookup interface.

CosTrading::Register_ptr register_if (void) const
void register_if (CosTrading::Register_ptr)
 Set the reference to the Register interface of the trader.

CosTrading::Link_ptr link_if (void) const
void link_if (CosTrading::Link_ptr)
 Set the reference to the Link interface of the trader.

CosTrading::Proxy_ptr proxy_if (void) const
void proxy_if (CosTrading::Proxy_ptr)
 Set the reference to the Proxy interface of the trader.

CosTrading::Admin_ptr admin_if (void) const
void admin_if (CosTrading::Admin_ptr)
 Set the reference to the Admin interface of the trader.


Private Attributes

TAO_Lockablelocker_
CosTrading::Lookup_var lookup_
CosTrading::Register_var register_
CosTrading::Link_var link_
CosTrading::Proxy_var proxy_
CosTrading::Admin_var admin_

Detailed Description

Set/get methods for references to various interfaces of the trader.

Note, this class is for use in local address space only and is NOT a direct implementation of IDL methods. (Implementation of IDL methods in CosTrading::Trader_Components would need add a _duplicate call for each get method).

Definition at line 334 of file Trader.h.


Constructor & Destructor Documentation

TAO_Trading_Components_i::TAO_Trading_Components_i TAO_Lockable locker  ) 
 

Definition at line 477 of file Trader.cpp.

00478   : locker_ (locker),
00479     lookup_ (CosTrading::Lookup::_nil ()),
00480     register_ (CosTrading::Register::_nil ()),
00481     link_ (CosTrading::Link::_nil ()),
00482     proxy_ (CosTrading::Proxy::_nil ()),
00483     admin_ (CosTrading::Admin::_nil ())
00484 {
00485 }

TAO_Trading_Components_i::~TAO_Trading_Components_i void   ) 
 

Definition at line 487 of file Trader.cpp.

00488 {
00489 }


Member Function Documentation

void TAO_Trading_Components_i::admin_if CosTrading::Admin_ptr   ) 
 

Set the reference to the Admin interface of the trader.

Definition at line 560 of file Trader.cpp.

References ACE_WRITE_GUARD, and admin_.

00561 {
00562   ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ());
00563   this->admin_ = new_value;
00564 }

CosTrading::Admin_ptr TAO_Trading_Components_i::admin_if void   )  const
 

Returns object reference for the Admin interface of the trader. Returns nil if the trader does not support Admin interface.

Definition at line 552 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and admin_.

Referenced by TAO_Trader< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::TAO_Trader().

00553 {
00554   ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (),
00555                          CosTrading::Admin::_nil ());
00556   return this->admin_.ptr ();
00557 }

void TAO_Trading_Components_i::link_if CosTrading::Link_ptr   ) 
 

Set the reference to the Link interface of the trader.

Definition at line 530 of file Trader.cpp.

References ACE_WRITE_GUARD.

00531 {
00532   ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ());
00533   this->link_ = new_value;
00534 }

CosTrading::Link_ptr TAO_Trading_Components_i::link_if void   )  const
 

Returns object reference for the Link interface of the trader. Returns nil if the trader does not support Link interface.

Definition at line 522 of file Trader.cpp.

References ACE_READ_GUARD_RETURN.

Referenced by TAO_Trading_Loader::bootstrap_to_federation(), TAO_Trading_Loader::fini(), and TAO_Trader< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::TAO_Trader().

00523 {
00524   ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (),
00525                          CosTrading::Link::_nil ());
00526   return this->link_.ptr ();
00527 }

void TAO_Trading_Components_i::lookup_if CosTrading::Lookup_ptr   ) 
 

Set the reference to the Lookup interface.

Definition at line 500 of file Trader.cpp.

References ACE_WRITE_GUARD, and lookup_.

00501 {
00502   ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ());
00503   this->lookup_ = new_value;
00504 }

CosTrading::Lookup_ptr TAO_Trading_Components_i::lookup_if void   )  const
 

Returns an object reference to the Lookup interface of the trader. Returns nil if the trader does not support Lookup interface.

Definition at line 492 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and lookup_.

Referenced by TAO_Trading_Loader::bootstrap_to_federation(), TAO_Trading_Loader::create_object(), and TAO_Trader< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::TAO_Trader().

00493 {
00494   ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (),
00495                          CosTrading::Lookup::_nil ());
00496   return this->lookup_.ptr ();
00497 }

void TAO_Trading_Components_i::proxy_if CosTrading::Proxy_ptr   ) 
 

Set the reference to the Proxy interface of the trader.

Definition at line 545 of file Trader.cpp.

References ACE_WRITE_GUARD.

00546 {
00547   ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ());
00548   this->proxy_ = new_value;
00549 }

CosTrading::Proxy_ptr TAO_Trading_Components_i::proxy_if void   )  const
 

Returns object reference to the Proxy interface of the trader. Returns nil if the trader does not support Proxy interface.

Definition at line 537 of file Trader.cpp.

References ACE_READ_GUARD_RETURN.

Referenced by TAO_Trader< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::TAO_Trader().

00538 {
00539   ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (),
00540                          CosTrading::Proxy::_nil ());
00541   return this->proxy_.ptr ();
00542 }

void TAO_Trading_Components_i::register_if CosTrading::Register_ptr   ) 
 

Set the reference to the Register interface of the trader.

Definition at line 515 of file Trader.cpp.

References ACE_WRITE_GUARD, and register_.

00516 {
00517   ACE_WRITE_GUARD (ACE_Lock, ace_mon, this->locker_.lock ());
00518   this->register_ = new_value;
00519 }

CosTrading::Register_ptr TAO_Trading_Components_i::register_if void   )  const
 

Returns object reference for the Register interface of the trader. Returns nil if the trader does not support Register interface.

Definition at line 507 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and register_.

Referenced by TAO_Trader< TRADER_LOCK_TYPE, MAP_LOCK_TYPE >::TAO_Trader().

00508 {
00509   ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (),
00510                          CosTrading::Register::_nil ());
00511   return this->register_.ptr ();
00512 }


Member Data Documentation

CosTrading::Admin_var TAO_Trading_Components_i::admin_ [private]
 

Definition at line 387 of file Trader.h.

Referenced by admin_if().

CosTrading::Link_var TAO_Trading_Components_i::link_ [private]
 

Definition at line 385 of file Trader.h.

TAO_Lockable& TAO_Trading_Components_i::locker_ [private]
 

Definition at line 381 of file Trader.h.

CosTrading::Lookup_var TAO_Trading_Components_i::lookup_ [private]
 

Definition at line 383 of file Trader.h.

Referenced by lookup_if().

CosTrading::Proxy_var TAO_Trading_Components_i::proxy_ [private]
 

Definition at line 386 of file Trader.h.

CosTrading::Register_var TAO_Trading_Components_i::register_ [private]
 

Definition at line 384 of file Trader.h.

Referenced by register_if().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:01:21 2006 for TAO_CosTrader by doxygen 1.3.6