#include <UTF8_Latin1_Factory.h>
Public Member Functions | |
TAO_UTF8_Latin1_Factory () | |
virtual | ~TAO_UTF8_Latin1_Factory () |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
CONV_FRAME::CodeSetId | ncs () const |
ncs returns the translator's native codeset ID. | |
CONV_FRAME::CodeSetId | tcs () const |
tcs returns the translator's transmission codeset ID. | |
virtual void | assign (TAO_InputCDR *) const |
Assign the translator to the input CDR. The inherited assign_i is used /// to assign either a char or wchar translator, depending on the base type /// of NCS_TO_TCS. A null input CDR is permitted, in which case assign is a /// no-op. | |
virtual void | assign (TAO_OutputCDR *) const |
Assign the translator to the output CDR. The inherited assign_i is used /// to assign either a char or wchar translator, depending on the base type /// of NCS_TO_TCS. A null output CDR is permitted, in which case assign is a /// no-op. | |
Private Member Functions | |
void | create_translator () const |
Private Attributes | |
TAO_UTF8_Latin1_Translator * | translator_ |
Definition at line 16 of file UTF8_Latin1_Factory.h.
TAO_UTF8_Latin1_Factory::TAO_UTF8_Latin1_Factory | ( | ) |
TAO_UTF8_Latin1_Factory::~TAO_UTF8_Latin1_Factory | ( | ) | [virtual] |
Definition at line 24 of file UTF8_Latin1_Factory.cpp.
{ delete this->translator_; }
void TAO_UTF8_Latin1_Factory::assign | ( | TAO_InputCDR * | cdr | ) | const [virtual] |
Assign the translator to the input CDR. The inherited assign_i is used /// to assign either a char or wchar translator, depending on the base type /// of NCS_TO_TCS. A null input CDR is permitted, in which case assign is a /// no-op.
Definition at line 52 of file UTF8_Latin1_Factory.cpp.
{ if (cdr) { create_translator(); this->assign_i(cdr,this->translator_); } }
void TAO_UTF8_Latin1_Factory::assign | ( | TAO_OutputCDR * | cdr | ) | const [virtual] |
Assign the translator to the output CDR. The inherited assign_i is used /// to assign either a char or wchar translator, depending on the base type /// of NCS_TO_TCS. A null output CDR is permitted, in which case assign is a /// no-op.
Definition at line 64 of file UTF8_Latin1_Factory.cpp.
{ if (cdr) { create_translator(); this->assign_i(cdr,this->translator_); } }
void TAO_UTF8_Latin1_Factory::create_translator | ( | ) | const [private] |
Definition at line 74 of file UTF8_Latin1_Factory.cpp.
{ if (this->translator_ == 0) { TAO_UTF8_Latin1_Factory * pthis = const_cast <TAO_UTF8_Latin1_Factory *>(this); ACE_NEW (pthis->translator_, TAO_UTF8_Latin1_Translator); if (this->translator_ == 0) { if (TAO_debug_level) ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) TAO_UTF8_Latin1_Factory cannot ") ACE_TEXT("create TAO_UTF8_Latin1_Translator\n") )); } } }
int TAO_UTF8_Latin1_Factory::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) | [virtual] |
Reimplemented from TAO_Codeset_Translator_Factory.
Definition at line 29 of file UTF8_Latin1_Factory.cpp.
{ TAO_Codeset_Translator_Factory::init (argc, argv); return 0; }
CONV_FRAME::CodeSetId TAO_UTF8_Latin1_Factory::ncs | ( | void | ) | const |
ncs returns the translator's native codeset ID.
Definition at line 36 of file UTF8_Latin1_Factory.cpp.
{ create_translator(); return this->translator_->ncs(); }
CONV_FRAME::CodeSetId TAO_UTF8_Latin1_Factory::tcs | ( | ) | const |
tcs returns the translator's transmission codeset ID.
Definition at line 43 of file UTF8_Latin1_Factory.cpp.
{ create_translator(); return this->translator_->tcs(); }
Definition at line 44 of file UTF8_Latin1_Factory.h.