TAO  2.3.3
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO_Codeset_Parameters Class Reference

A simple storage class for the native codeset and any translators that must be configured when creating an instance of codeset manager. More...

#include <default_resource.h>

Collaboration diagram for TAO_Codeset_Parameters:
Collaboration graph
[legend]

Public Types

typedef ACE_Unbounded_Queue_Iterator< ACE_TCHAR * > iterator
 

Public Member Functions

 TAO_Codeset_Parameters (void)
 
 ~TAO_Codeset_Parameters (void)
 
const ACE_TCHARnative (void)
 The native codeset (getter) More...
 
void native (const ACE_TCHAR *n)
 The native codeset (setter) More...
 
void add_translator (const ACE_TCHAR *name)
 Add a new codeset. More...
 
iterator translators (void)
 Iterate through the registered translators. More...
 
void apply_to (TAO_Codeset_Descriptor_Base *csd)
 Apply the parameters to the said descriptor. More...
 

Private Member Functions

 TAO_Codeset_Parameters (const TAO_Codeset_Parameters &)
 
TAO_Codeset_Parametersoperator= (const TAO_Codeset_Parameters &)
 

Private Attributes

ACE_Unbounded_Queue< ACE_TCHAR * > translators_
 
ACE_TCHARnative_
 

Detailed Description

A simple storage class for the native codeset and any translators that must be configured when creating an instance of codeset manager.

The Resource Factory uses two instances of this class during its initialization, to capture any native codeset or translators settings. The RF later uses these parameters when creating instances of the codeset manager.

Perhaps, the best would be to place the responsibility for codeset manager's configuration with the the codeset manager factory?

Member Typedef Documentation

Constructor & Destructor Documentation

TAO_Codeset_Parameters::TAO_Codeset_Parameters ( void  )
TAO_Codeset_Parameters::~TAO_Codeset_Parameters ( void  )
TAO_Codeset_Parameters::TAO_Codeset_Parameters ( const TAO_Codeset_Parameters )
private

Member Function Documentation

void TAO_Codeset_Parameters::add_translator ( const ACE_TCHAR name)

Add a new codeset.

void TAO_Codeset_Parameters::apply_to ( TAO_Codeset_Descriptor_Base csd)

Apply the parameters to the said descriptor.

const ACE_TCHAR * TAO_Codeset_Parameters::native ( void  )

The native codeset (getter)

void TAO_Codeset_Parameters::native ( const ACE_TCHAR n)

The native codeset (setter)

TAO_Codeset_Parameters& TAO_Codeset_Parameters::operator= ( const TAO_Codeset_Parameters )
private
TAO_Codeset_Parameters::iterator TAO_Codeset_Parameters::translators ( void  )

Iterate through the registered translators.

Member Data Documentation

ACE_TCHAR* TAO_Codeset_Parameters::native_
private
ACE_Unbounded_Queue<ACE_TCHAR*> TAO_Codeset_Parameters::translators_
private

The documentation for this class was generated from the following files: