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

TAO_Codeset_Item Class Reference

A single element in the list of Codeset Translator Factories. More...

#include <Codeset_Manager.h>

Collaboration diagram for TAO_Codeset_Item:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Codeset_Item (const char *name)
 creator method, the codeset name can only be set when the object is created. More...

 ~TAO_Codeset_Item (void)
 destructor that deallocates the factory object if the CodeSet_Item retains ownership. More...

const char * codeset_name (void)
 return a reference to the character representation of the codeset factories name. More...

TAO_Codeset_Translator_Factoryfactory (void)
 return a pointer to the codeset factory. More...

void factory (TAO_Codeset_Translator_Factory *factory)
 set the factory pointer's value. More...


Private Methods

 TAO_Codeset_Item (const TAO_Codeset_Item &)
void operator= (const TAO_Codeset_Item &)

Private Attributes

char * name_
 factory name. More...

TAO_Codeset_Translator_Factoryfactory_
 pointer to factory object. More...


Friends

class TAO_Codeset_Manager

Detailed Description

A single element in the list of Codeset Translator Factories.

This class is used by the Codeset_Manager to store references to individual codeset factories. Only those translators that match the char or wchar native codeset will be kept in the list.

Definition at line 47 of file Codeset_Manager.h.


Constructor & Destructor Documentation

TAO_Codeset_Item::TAO_Codeset_Item const char *    name
 

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

Definition at line 383 of file Codeset_Manager.cpp.

References name_, and ACE_OS_String::strdup.

00384   :   name_ (0),
00385       factory_ (0)
00386 {
00387   if (name)
00388     name_ = ACE_OS::strdup(name);
00389 }

TAO_Codeset_Item::~TAO_Codeset_Item void   
 

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

Definition at line 391 of file Codeset_Manager.cpp.

References name_.

00392 {
00393   delete [] this->name_;
00394 }

TAO_Codeset_Item::TAO_Codeset_Item const TAO_Codeset_Item &    [private]
 


Member Function Documentation

const char * TAO_Codeset_Item::codeset_name void   
 

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

Definition at line 397 of file Codeset_Manager.cpp.

References name_.

00398 {
00399   return this->name_;
00400 }

void TAO_Codeset_Item::factory TAO_Codeset_Translator_Factory   factory
 

set the factory pointer's value.

Definition at line 409 of file Codeset_Manager.cpp.

References factory_.

00410 {
00411   this->factory_ = factory;
00412 }

TAO_Codeset_Translator_Factory * TAO_Codeset_Item::factory void   
 

return a pointer to the codeset factory.

Definition at line 403 of file Codeset_Manager.cpp.

References factory_.

00404 {
00405   return this->factory_;
00406 }

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


Friends And Related Function Documentation

friend class TAO_Codeset_Manager [friend]
 

Definition at line 50 of file Codeset_Manager.h.


Member Data Documentation

TAO_Codeset_Translator_Factory* TAO_Codeset_Item::factory_ [private]
 

pointer to factory object.

Definition at line 79 of file Codeset_Manager.h.

Referenced by factory.

char* TAO_Codeset_Item::name_ [private]
 

factory name.

Definition at line 76 of file Codeset_Manager.h.

Referenced by codeset_name, TAO_Codeset_Item, and ~TAO_Codeset_Item.


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