Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Codeset_IBM1047.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Codeset_IBM1047.h
00006  *
00007  *  $Id: Codeset_IBM1047.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  Declares the arrays required to convert between ISO8859 (aka
00010  *  Latin/1) and IBM1047 (aka EBCDIC).
00011  *
00012  *
00013  *  @author Jim Rogers (jrogers@viasoft.com)
00014  */
00015 //=============================================================================
00016 
00017 
00018 #ifndef ACE_CODESET_IMB1047_H
00019 #define ACE_CODESET_IMB1047_H
00020 #include "ace/pre.h"
00021 
00022 #include "ace/config-all.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #if defined(ACE_MVS)
00029 
00030 #include "ace/CDR_Stream.h"
00031 
00032 extern ACE_Export char ACE_to_IBM1047[257];
00033 extern ACE_Export char ACE_from_IBM1047[257];
00034 
00035 // ****************************************************************
00036 
00037 /**
00038  * @class ACE_IBM1047_ISO8859
00039  *
00040  * @brief Codeset translation specialization.
00041  *
00042  * This class performs the codeset translation:
00043  *   - Native:        IBM_1047 (i.e. EBCDIC)
00044  *   - Stream:        ISO-8859 (i.e. Latin/1)
00045  */
00046 class ACE_Export ACE_IBM1047_ISO8859 : public ACE_Char_Codeset_Translator
00047 {
00048 public:
00049   /// A do nothing constructor.
00050   ACE_IBM1047_ISO8859 (void);
00051 
00052   /// Virtual destruction
00053   virtual ~ACE_IBM1047_ISO8859 (void);
00054 
00055   // = Documented in $ACE_ROOT/ace/CDR_Stream.h
00056   virtual ACE_CDR::Boolean read_char (ACE_InputCDR &,
00057                                       ACE_CDR::Char &);
00058   virtual ACE_CDR::Boolean read_string (ACE_InputCDR &,
00059                                         ACE_CDR::Char *&);
00060   virtual ACE_CDR::Boolean read_char_array (ACE_InputCDR &,
00061                                             ACE_CDR::Char *,
00062                                             ACE_CDR::ULong);
00063   virtual ACE_CDR::Boolean write_char (ACE_OutputCDR &,
00064                                        ACE_CDR::Char);
00065   virtual ACE_CDR::Boolean write_string (ACE_OutputCDR &,
00066                                          ACE_CDR::ULong,
00067                                          const ACE_CDR::Char *);
00068   virtual ACE_CDR::Boolean write_char_array (ACE_OutputCDR &,
00069                                              const ACE_CDR::Char *,
00070                                              ACE_CDR::ULong);
00071 
00072   /// return the native codeset ID as defined in the OSF code and character
00073   /// set registry, 0x10020417
00074   virtual ACE_CDR::ULong ncs ();
00075   /// return the translated codeset ID as defined in the OSF code and character
00076   /// set registry, 0x00010001
00077   virtual ACE_CDR::ULong tcs ();
00078 };
00079 
00080 /**
00081  * @class ACE_ISO8859_IBM1047
00082  *
00083  * @brief Codeset translation specialization.
00084  *
00085  * This class performs the codeset translation:
00086  *   - Native:        ISO-8859 (i.e. Latin/1)
00087  *   - Stream:        IBM-1047 (i.e. EBCDIC)
00088  */
00089 class ACE_Export ACE_ISO8859_IBM1047 : public ACE_Char_Codeset_Translator
00090 {
00091 public:
00092   /// A do nothing constructor.
00093   ACE_ISO8859_IBM1047 (void);
00094 
00095   /// Virtual destruction
00096   virtual ~ACE_ISO8859_IBM1047 (void);
00097 
00098   // = Documented in $ACE_ROOT/ace/CDR_Stream.h
00099   virtual ACE_CDR::Boolean read_char (ACE_InputCDR &,
00100                                       ACE_CDR::Char &);
00101   virtual ACE_CDR::Boolean read_string (ACE_InputCDR &,
00102                                         ACE_CDR::Char *&);
00103   virtual ACE_CDR::Boolean read_char_array (ACE_InputCDR &,
00104                                             ACE_CDR::Char *,
00105                                             ACE_CDR::ULong);
00106   virtual ACE_CDR::Boolean write_char (ACE_OutputCDR &,
00107                                        ACE_CDR::Char);
00108   virtual ACE_CDR::Boolean write_string (ACE_OutputCDR &,
00109                                          ACE_CDR::ULong,
00110                                          const ACE_CDR::Char *);
00111   virtual ACE_CDR::Boolean write_char_array (ACE_OutputCDR &,
00112                                              const ACE_CDR::Char *,
00113                                              ACE_CDR::ULong);
00114 
00115   /// return the native codeset ID as defined in the OSF code and character
00116   /// set registry, 0x00010001
00117   virtual ACE_CDR::ULong ncs ();
00118   /// return the translated codeset ID as defined in the OSF code and character
00119   /// set registry, 0x10020417
00120   virtual ACE_CDR::ULong tcs ();
00121 };
00122 
00123 #endif /* ACE_MVS */
00124 
00125 #include "ace/post.h"
00126 #endif /* ACE_CODESET_IMB1047_H */

Generated on Mon Jun 16 11:19:22 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002