#include <Codeset_Translator_Factory.h>
Inheritance diagram for TAO_Codeset_Translator_Factory:
Public Member Functions | |
TAO_Codeset_Translator_Factory () | |
virtual | ~TAO_Codeset_Translator_Factory () |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
virtual CONV_FRAME::CodeSetId | ncs () const =0 |
virtual CONV_FRAME::CodeSetId | tcs () const =0 |
virtual void | assign (TAO_InputCDR *) const =0 |
virtual void | assign (TAO_OutputCDR *) const =0 |
Protected Member Functions | |
void | assign_i (TAO_InputCDR *, ACE_Char_Codeset_Translator *) const |
void | assign_i (TAO_InputCDR *, ACE_WChar_Codeset_Translator *) const |
void | assign_i (TAO_OutputCDR *, ACE_Char_Codeset_Translator *) const |
void | assign_i (TAO_OutputCDR *, ACE_WChar_Codeset_Translator *) const |
The codeset translator factory is a loadable service object. It is used to supply the actual translator used in converting between two codesets. The intent of using a factory is to avoid requiring codeset translators to be multiply inherited both from the translator base class and the service object base. The translator factory is also responsible for assigning translators to CDR streams. Since there is no common base class between input and output CDRs, the assingment code must be duplicated.
|
|
|
|
|
Assign the translator to the supplied output CDR. This is left abstract since the factory base does not have a reference to the actual translator instance. The template instance provides this implementation. Implemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, and UTF16_BOM_Factory. |
|
Assign the translator to the supplied input CDR. This is left abstract since the factory base does not have a reference to the actual translator instance. The template instance provides this implementation. Implemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, and UTF16_BOM_Factory. |
|
Assign the translator to the supplied output CDR. The template instance will have a translator that is based on either the Char or Wchar translator, so the compiler will select the appropriate call from assign(). |
|
Assign the translator to the supplied output CDR. The template instance will have a translator that is based on either the Char or Wchar translator, so the compiler will select the appropriate call from assign(). |
|
Assign the translator to the supplied input CDR. The template instance will have a translator that is based on either the Char or Wchar translator, so the compiler will select the appropriate call from assign(). |
|
Assign the translator to the supplied input CDR. The template instance will have a translator that is based on either the Char or Wchar translator, so the compiler will select the appropriate call from assign(). |
|
Reimplemented from ACE_Shared_Object. Reimplemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, and UTF16_BOM_Factory. |
|
Get the native codeset ID from the factory. There is no reasonable default for this method, so it is left abstract. Implemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, and UTF16_BOM_Factory. |
|
Get the translated codeset ID from the factory. There is no reasonable default for this method, so it is left abstract. Implemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, and UTF16_BOM_Factory. |