TAO  2.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public 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>

Inheritance diagram for TAO_Codeset_Parameters:
Inheritance graph
[legend]
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)
void native (const ACE_TCHAR *n)
 The native codeset (setter)
void add_translator (const ACE_TCHAR *name)
 Add a new codeset.
iterator translators (void)
 Iterate through the registered translators.
void apply_to (TAO_Codeset_Descriptor_Base *csd)
 Apply the parameters to the said descriptor.
- Public Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled (void)

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  )

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::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: