00001 /*00002 * Licensed to the Apache Software Foundation (ASF) under one or more00003 * contributor license agreements. See the NOTICE file distributed with00004 * this work for additional information regarding copyright ownership.00005 * The ASF licenses this file to You under the Apache License, Version 2.000006 * (the "License"); you may not use this file except in compliance with00007 * the License. You may obtain a copy of the License at00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.000010 * 00011 * Unless required by applicable law or agreed to in writing, software00012 * distributed under the License is distributed on an "AS IS" BASIS,00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.00014 * See the License for the specific language governing permissions and00015 * limitations under the License.00016 */00017
00018 #ifndef XMLIBM1047TRANSCODER_HPP00019 #define XMLIBM1047TRANSCODER_HPP00020
00021 #include <xercesc/util/XercesDefs.hpp>00022 #include <xercesc/util/XML256TableTranscoder.hpp>00023
00024 XERCES_CPP_NAMESPACE_BEGIN00025
00026 //00027 // This class provides an implementation of the XMLTranscoder interface00028 // for a simple 1047-US transcoder. The parser does some encodings00029 // intrinsically without depending upon external transcoding services.00030 // To make everything more orthagonal, we implement these internal00031 // transcoders using the same transcoder abstraction as the pluggable00032 // transcoding services do.00033 //00034 //00035class XMLIBM1047Transcoder : public XML256TableTranscoder
00036 {
00037 public :
00038 // -----------------------------------------------------------------------00039 // Public, static methods00040 // -----------------------------------------------------------------------00041 static XMLCh xlatThisOne(constXMLByte toXlat);
00042
00043
00044 // -----------------------------------------------------------------------00045 // Public constructors and destructor00046 // -----------------------------------------------------------------------00047 XMLIBM1047Transcoder00048 (
00049 const XMLCh* const encodingName
00050 , constunsignedint blockSize
00051 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager00052 );
00053
00054 virtual ~XMLIBM1047Transcoder();
00055
00056
00057 private :
00058 // -----------------------------------------------------------------------00059 // Unimplemented constructors and operators00060 // -----------------------------------------------------------------------00061 XMLIBM1047Transcoder();
00062 XMLIBM1047Transcoder(constXMLIBM1047Transcoder&);
00063 void operator=(constXMLIBM1047Transcoder&);
00064 };
00065
00066 XERCES_CPP_NAMESPACE_END00067
00068 #endif