XMLIBM1047Transcoder.hpp

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  * 
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  * 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * 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 and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef XMLIBM1047TRANSCODER_HPP
00019 #define XMLIBM1047TRANSCODER_HPP
00020 
00021 #include <xercesc/util/XercesDefs.hpp>
00022 #include <xercesc/util/XML256TableTranscoder.hpp>
00023 
00024 XERCES_CPP_NAMESPACE_BEGIN
00025 
00026 //
00027 //  This class provides an implementation of the XMLTranscoder interface
00028 //  for a simple 1047-US transcoder. The parser does some encodings
00029 //  intrinsically without depending upon external transcoding services.
00030 //  To make everything more orthagonal, we implement these internal
00031 //  transcoders using the same transcoder abstraction as the pluggable
00032 //  transcoding services do.
00033 //
00034 //
00035 class XMLUTIL_EXPORT XMLIBM1047Transcoder : public XML256TableTranscoder
00036 {
00037 public :
00038     // -----------------------------------------------------------------------
00039     //  Public, static methods
00040     // -----------------------------------------------------------------------
00041     static XMLCh xlatThisOne(const XMLByte toXlat);
00042 
00043 
00044     // -----------------------------------------------------------------------
00045     //  Public constructors and destructor
00046     // -----------------------------------------------------------------------
00047     XMLIBM1047Transcoder
00048     (
00049         const   XMLCh* const    encodingName
00050         , const unsigned int    blockSize
00051         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00052     );
00053 
00054     virtual ~XMLIBM1047Transcoder();
00055 
00056 
00057 private :
00058     // -----------------------------------------------------------------------
00059     //  Unimplemented constructors and operators
00060     // -----------------------------------------------------------------------
00061     XMLIBM1047Transcoder();
00062     XMLIBM1047Transcoder(const XMLIBM1047Transcoder&);
00063     void operator=(const XMLIBM1047Transcoder&);
00064 };
00065 
00066 XERCES_CPP_NAMESPACE_END
00067 
00068 #endif

Generated on Thu Feb 19 11:35:44 2009 for Xerces-C++ by  doxygen 1.5.4