Xerces-C++: XMLIBM1047Transcoder.hpp Source File

| API Docs for SAX and DOM |
| Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages # XMLIBM1047Transcoder.hpp Go to the documentation of this file.
    00001 /*
    00002  * Copyright 2003,2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 #ifndef XMLIBM1047TRANSCODER_HPP
    00018 #define XMLIBM1047TRANSCODER_HPP
    00019
    00020 #include <xercesc/util/XercesDefs.hpp>
    00021 #include <xercesc/util/XML256TableTranscoder.hpp>
    00022
    00023 XERCES_CPP_NAMESPACE_BEGIN
    00024
    00025 //
    00026 //  This class provides an implementation of the XMLTranscoder interface
    00027 //  for a simple 1047-US transcoder. The parser does some encodings
    00028 //  intrinsically without depending upon external transcoding services.
    00029 //  To make everything more orthagonal, we implement these internal
    00030 //  transcoders using the same transcoder abstraction as the pluggable
    00031 //  transcoding services do.
    00032 //
    00033 //
    00034 class  XMLIBM1047Transcoder : public XML256TableTranscoder
    00035 {
    00036 public :
    00037     // -----------------------------------------------------------------------
    00038     //  Public, static methods
    00039     // -----------------------------------------------------------------------
    00040     static XMLCh xlatThisOne(const XMLByte toXlat);
    00041
    00042
    00043     // -----------------------------------------------------------------------
    00044     //  Public constructors and destructor
    00045     // -----------------------------------------------------------------------
    00046     XMLIBM1047Transcoder
    00047     (
    00048         const   XMLCh* const    encodingName
    00049         , const unsigned int    blockSize
    00050         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
    00051     );
    00052
    00053     virtual ~XMLIBM1047Transcoder();
    00054
    00055
    00056 private :
    00057     // -----------------------------------------------------------------------
    00058     //  Unimplemented constructors and operators
    00059     // -----------------------------------------------------------------------
    00060     XMLIBM1047Transcoder();
    00061     XMLIBM1047Transcoder(const XMLIBM1047Transcoder&);
    00062     void operator=(const XMLIBM1047Transcoder&);
    00063 };
    00064
    00065 XERCES_CPP_NAMESPACE_END
    00066
    00067 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.