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 476 of file Trader.cpp.

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

TAO_Trading_Components_i::~TAO_Trading_Components_i ( void   ) 

Definition at line 486 of file Trader.cpp.

00487 {
00488 }


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 559 of file Trader.cpp.

References ACE_WRITE_GUARD, and admin_.

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

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 551 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and admin_.

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

void TAO_Trading_Components_i::link_if ( CosTrading::Link_ptr   ) 

Set the reference to the Link interface of the trader.

Definition at line 529 of file Trader.cpp.

References ACE_WRITE_GUARD, and link_.

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

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 521 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and link_.

Referenced by TAO_Trading_Loader::bootstrap_to_federation().

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

void TAO_Trading_Components_i::lookup_if ( CosTrading::Lookup_ptr   ) 

Set the reference to the Lookup interface.

Definition at line 499 of file Trader.cpp.

References ACE_WRITE_GUARD, and lookup_.

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

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 491 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and lookup_.

Referenced by TAO_Trading_Loader::bootstrap_to_federation(), and TAO_Trading_Loader::create_object().

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

void TAO_Trading_Components_i::proxy_if ( CosTrading::Proxy_ptr   ) 

Set the reference to the Proxy interface of the trader.

Definition at line 544 of file Trader.cpp.

References ACE_WRITE_GUARD, and proxy_.

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

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 536 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and proxy_.

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

void TAO_Trading_Components_i::register_if ( CosTrading::Register_ptr   ) 

Set the reference to the Register interface of the trader.

Definition at line 514 of file Trader.cpp.

References ACE_WRITE_GUARD, and register_.

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

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 506 of file Trader.cpp.

References ACE_READ_GUARD_RETURN, and register_.

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


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.

Referenced by link_if().

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.

Referenced by proxy_if().

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 Tue Feb 2 17:49:35 2010 for TAO_CosTrader by  doxygen 1.4.7