Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TAO_Codeset_Translator_Factory_T< NCS_TO_TCS > Class Template Reference

Template for translator factory classes. More...

#include <Codeset_Translator_Factory_T.h>

Inheritance diagram for TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Codeset_Translator_Factory_T ()
virtual ~TAO_Codeset_Translator_Factory_T ()
int init (int argc, ACE_TCHAR *argv[])
 Initialize the factory service object. Instantiates the translator.
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
virtual void assign (TAO_OutputCDR *) const

Private Attributes

NCS_TO_TCS * translator_

Detailed Description

template<class NCS_TO_TCS>
class TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >

Template for translator factory classes.

The template argument is the actual translator class. The factory creates an instance of the translator during initialization. Other than that, the template returns the actual values for the native and translated codeset ids, and performs the translator assignment to the CDR objects as needed.


Constructor & Destructor Documentation

template<class NCS_TO_TCS>
TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::TAO_Codeset_Translator_Factory_T  ) 
 

template<class NCS_TO_TCS>
TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::~TAO_Codeset_Translator_Factory_T  )  [virtual]
 


Member Function Documentation

template<class NCS_TO_TCS>
void TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::assign TAO_OutputCDR  )  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.

Implements TAO_Codeset_Translator_Factory.

template<class NCS_TO_TCS>
void TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::assign TAO_InputCDR  )  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.

Implements TAO_Codeset_Translator_Factory.

template<class NCS_TO_TCS>
int TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::init int  argc,
ACE_TCHAR argv[]
[virtual]
 

Initialize the factory service object. Instantiates the translator.

Reimplemented from TAO_Codeset_Translator_Factory.

template<class NCS_TO_TCS>
CONV_FRAME::CodeSetId TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::ncs  )  const [virtual]
 

ncs returns the translator's native codeset ID.

Implements TAO_Codeset_Translator_Factory.

template<class NCS_TO_TCS>
CONV_FRAME::CodeSetId TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::tcs  )  const [virtual]
 

tcs returns the translator's transmission codeset ID.

Implements TAO_Codeset_Translator_Factory.


Member Data Documentation

template<class NCS_TO_TCS>
NCS_TO_TCS* TAO_Codeset_Translator_Factory_T< NCS_TO_TCS >::translator_ [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jun 9 00:17:06 2005 for TAO by  doxygen 1.3.9.1