source: NonGTP/Xerces/xerces/include/xercesc/util/XMLIBM1047Transcoder.hpp @ 358

Revision 358, 2.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2003,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef XMLIBM1047TRANSCODER_HPP
18#define XMLIBM1047TRANSCODER_HPP
19
20#include <xercesc/util/XercesDefs.hpp>
21#include <xercesc/util/XML256TableTranscoder.hpp>
22
23XERCES_CPP_NAMESPACE_BEGIN
24
25//
26//  This class provides an implementation of the XMLTranscoder interface
27//  for a simple 1047-US transcoder. The parser does some encodings
28//  intrinsically without depending upon external transcoding services.
29//  To make everything more orthagonal, we implement these internal
30//  transcoders using the same transcoder abstraction as the pluggable
31//  transcoding services do.
32//
33//
34class XMLUTIL_EXPORT XMLIBM1047Transcoder : public XML256TableTranscoder
35{
36public :
37    // -----------------------------------------------------------------------
38    //  Public, static methods
39    // -----------------------------------------------------------------------
40    static XMLCh xlatThisOne(const XMLByte toXlat);
41
42
43    // -----------------------------------------------------------------------
44    //  Public constructors and destructor
45    // -----------------------------------------------------------------------
46    XMLIBM1047Transcoder
47    (
48        const   XMLCh* const    encodingName
49        , const unsigned int    blockSize
50        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
51    );
52
53    virtual ~XMLIBM1047Transcoder();
54
55
56private :
57    // -----------------------------------------------------------------------
58    //  Unimplemented constructors and operators
59    // -----------------------------------------------------------------------
60    XMLIBM1047Transcoder();
61    XMLIBM1047Transcoder(const XMLIBM1047Transcoder&);
62    void operator=(const XMLIBM1047Transcoder&);
63};
64
65XERCES_CPP_NAMESPACE_END
66
67#endif
Note: See TracBrowser for help on using the repository browser.