TAO
2.0.8
|
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) | |
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. | |
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 | ) |
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.
ACE_TCHAR* TAO_Codeset_Parameters::native_ [private] |