TAO_Protocol_Item Class Reference

#include <Resource_Factory.h>

Collaboration diagram for TAO_Protocol_Item:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Protocol_Item (const ACE_CString &name)
 ~TAO_Protocol_Item (void)
const ACE_CStringprotocol_name (void)
TAO_Protocol_Factoryfactory (void)
 Return a pointer to the protocol factory.

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


Private Member Functions

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

Private Attributes

ACE_CString name_
 Protocol factory name.

TAO_Protocol_Factoryfactory_
 Pointer to factory object.

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


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL 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 18 of file Resource_Factory.cpp.

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

TAO_Protocol_Item::~TAO_Protocol_Item void   ) 
 

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

Definition at line 25 of file Resource_Factory.cpp.

References factory_owner_.

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

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 44 of file Resource_Factory.cpp.

References factory_owner_.

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

TAO_Protocol_Factory * TAO_Protocol_Item::factory void   ) 
 

Return a pointer to the protocol factory.

Definition at line 38 of file Resource_Factory.cpp.

Referenced by TAO_Default_Resource_Factory::load_default_protocols().

00039 {
00040   return this->factory_;
00041 }

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 32 of file Resource_Factory.cpp.

Referenced by TAO_Default_Resource_Factory::load_default_protocols().

00033 {
00034   return this->name_;
00035 }


Member Data Documentation

TAO_Protocol_Factory* TAO_Protocol_Item::factory_ [private]
 

Pointer to factory object.

Definition at line 85 of file Resource_Factory.h.

int TAO_Protocol_Item::factory_owner_ [private]
 

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

Definition at line 88 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 82 of file Resource_Factory.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:23:14 2006 for TAO by doxygen 1.3.6