TAO
2.3.3
|
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>
Public Types | |
typedef ACE_Unbounded_Queue_Iterator< ACE_TCHAR * > | iterator |
Public Member Functions | |
TAO_Codeset_Parameters (void) | |
~TAO_Codeset_Parameters (void) | |
const ACE_TCHAR * | native (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_Parameters & | operator= (const TAO_Codeset_Parameters &) |
Private Attributes | |
ACE_Unbounded_Queue< ACE_TCHAR * > | translators_ |
ACE_TCHAR * | native_ |
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?
TAO_Codeset_Parameters::TAO_Codeset_Parameters | ( | void | ) |
TAO_Codeset_Parameters::~TAO_Codeset_Parameters | ( | void | ) |
|
private |
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)
|
private |
TAO_Codeset_Parameters::iterator TAO_Codeset_Parameters::translators | ( | void | ) |
Iterate through the registered translators.
|
private |
|
private |