Abstract base class for factories providing codeset translators. More...
#include <Codeset_Translator_Factory.h>
Public Member Functions | |
TAO_Codeset_Translator_Factory () | |
virtual | ~TAO_Codeset_Translator_Factory () |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
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 |
Abstract base class for factories providing codeset translators.
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.
Definition at line 54 of file Codeset_Translator_Factory.h.
TAO_Codeset_Translator_Factory::TAO_Codeset_Translator_Factory | ( | ) |
Definition at line 28 of file Codeset_Translator_Factory.cpp.
{ }
TAO_Codeset_Translator_Factory::~TAO_Codeset_Translator_Factory | ( | ) | [virtual] |
Definition at line 33 of file Codeset_Translator_Factory.cpp.
{ }
void TAO_Codeset_Translator_Factory::assign_i | ( | TAO_InputCDR * | cdr, | |
ACE_Char_Codeset_Translator * | trans | |||
) | const [protected] |
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().
Definition at line 45 of file Codeset_Translator_Factory.cpp.
{ cdr->char_translator(trans); }
void TAO_Codeset_Translator_Factory::assign_i | ( | TAO_OutputCDR * | cdr, | |
ACE_WChar_Codeset_Translator * | trans | |||
) | const [protected] |
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().
Definition at line 69 of file Codeset_Translator_Factory.cpp.
{ cdr->wchar_translator(trans); }
void TAO_Codeset_Translator_Factory::assign_i | ( | TAO_OutputCDR * | cdr, | |
ACE_Char_Codeset_Translator * | trans | |||
) | const [protected] |
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().
Definition at line 53 of file Codeset_Translator_Factory.cpp.
{ cdr->char_translator(trans); }
void TAO_Codeset_Translator_Factory::assign_i | ( | TAO_InputCDR * | cdr, | |
ACE_WChar_Codeset_Translator * | trans | |||
) | const [protected] |
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().
Definition at line 61 of file Codeset_Translator_Factory.cpp.
{ cdr->wchar_translator(trans); }
virtual int TAO_Codeset_Translator_Factory::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) | [virtual] |
Reimplemented from ACE_Shared_Object.
Reimplemented in TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >, TAO_UTF16_BOM_Factory, and TAO_UTF8_Latin1_Factory.