#include <Resource_Factory.h>
Public Member Functions | |
TAO_Protocol_Item (const ACE_CString &name) | |
Creator method, the protocol name can only be set when the /// object is created. | |
~TAO_Protocol_Item (void) | |
Destructor that deallocates the factory object if the /// Protocol_Item retains ownership. | |
const ACE_CString & | protocol_name (void) |
Return a reference to the character representation of the protocol /// factories name. | |
TAO_Protocol_Factory * | factory (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_Factory * | factory_ |
Pointer to factory object. | |
int | factory_owner_ |
Whether we own (and therefore have to delete) the factory object. |
Definition at line 54 of file Resource_Factory.h.
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.
: name_ (name), factory_ (0), factory_owner_ (0) { }
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.
{ if (this->factory_owner_ == 1) delete this->factory_; }
TAO_Protocol_Item::TAO_Protocol_Item | ( | const TAO_Protocol_Item & | ) | [private] |
TAO_Protocol_Factory * TAO_Protocol_Item::factory | ( | void | ) |
Return a pointer to the protocol factory.
Definition at line 38 of file Resource_Factory.cpp.
{ return this->factory_; }
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.
{ this->factory_ = factory; this->factory_owner_ = owner; }
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.
{ return this->name_; }
TAO_Protocol_Factory* TAO_Protocol_Item::factory_ [private] |
Pointer to factory object.
Definition at line 86 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 89 of file Resource_Factory.h.
ACE_CString TAO_Protocol_Item::name_ [private] |
Protocol factory name.
Definition at line 83 of file Resource_Factory.h.