Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Protocol_Item Class Reference

#include <Resource_Factory.h>

Collaboration diagram for TAO_Protocol_Item:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Protocol_Item (const ACE_CString &name)
 creator method, the protocol name can only be set when the object is created. More...

 ~TAO_Protocol_Item (void)
 destructor that deallocates the factory object if the Protocol_Item retains ownership. More...

const ACE_CStringprotocol_name (void)
 return a reference to the character representation of the protocol factories name. More...

TAO_Protocol_Factoryfactory (void)
 return a pointer to the protocol factory. More...

void factory (TAO_Protocol_Factory *factory, int owner=0)
 set the factory pointer's value. More...


Private Methods

 TAO_Protocol_Item (const TAO_Protocol_Item &)
void operator= (const TAO_Protocol_Item &)

Private Attributes

ACE_CString name_
 protocol factory name. More...

TAO_Protocol_Factoryfactory_
 pointer to factory object. More...

int factory_owner_
 whether we own (and therefore have to delete) the factory object. More...


Constructor & Destructor Documentation

TAO_Protocol_Item::TAO_Protocol_Item const ACE_CString   name
 

creator method, the protocol name can only be set when the object is created.

Definition at line 19 of file Resource_Factory.cpp.

References ACE_CString.

00020   :   name_ (name),
00021       factory_ (0),
00022       factory_owner_ (0)
00023 {
00024 }

TAO_Protocol_Item::~TAO_Protocol_Item void   
 

destructor that deallocates the factory object if the Protocol_Item retains ownership.

Definition at line 26 of file Resource_Factory.cpp.

References factory_, and factory_owner_.

00027 {
00028   if (this->factory_owner_ == 1)
00029     delete this->factory_;
00030 }

TAO_Protocol_Item::TAO_Protocol_Item const TAO_Protocol_Item &    [private]
 


Member Function Documentation

void TAO_Protocol_Item::factory TAO_Protocol_Factory   factory,
int    owner = 0
 

set the factory pointer's value.

Definition at line 45 of file Resource_Factory.cpp.

References factory_, and factory_owner_.

00047 {
00048   this->factory_ = factory;
00049   this->factory_owner_ = owner;
00050 }

TAO_Protocol_Factory * TAO_Protocol_Item::factory void   
 

return a pointer to the protocol factory.

Definition at line 39 of file Resource_Factory.cpp.

References factory_.

Referenced by TAO_Default_Resource_Factory::load_default_protocols.

00040 {
00041   return this->factory_;
00042 }

void TAO_Protocol_Item::operator= const TAO_Protocol_Item &    [private]
 

const ACE_CString & TAO_Protocol_Item::protocol_name void   
 

return a reference to the character representation of the protocol factories name.

Definition at line 33 of file Resource_Factory.cpp.

References name_.

Referenced by TAO_Default_Resource_Factory::load_default_protocols.

00034 {
00035   return this->name_;
00036 }


Member Data Documentation

TAO_Protocol_Factory* TAO_Protocol_Item::factory_ [private]
 

pointer to factory object.

Definition at line 75 of file Resource_Factory.h.

Referenced by factory, and ~TAO_Protocol_Item.

int TAO_Protocol_Item::factory_owner_ [private]
 

whether we own (and therefore have to delete) the factory object.

Definition at line 78 of file Resource_Factory.h.

Referenced by factory, and ~TAO_Protocol_Item.

ACE_CString TAO_Protocol_Item::name_ [private]
 

protocol factory name.

Definition at line 72 of file Resource_Factory.h.

Referenced by protocol_name.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:37:32 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002