Xalan-C++ API Reference  1.12.0
XalanToXercesTranscoderWrapper.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680)
19 #define XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
28 // Base class header file...
30 
31 
32 
33 namespace XERCES_CPP_NAMESPACE
34 {
35  class XMLTranscoder;
36 }
37 
38 
39 
40 namespace XALAN_CPP_NAMESPACE {
41 
42 
43 
45 {
46 public:
47 
48  typedef xercesc::XMLTranscoder XMLTranscoderType;
49 
50  explicit
51  XalanToXercesTranscoderWrapper(MemoryManager& theManager, XMLTranscoderType& theTranscoder);
52 
54  create(MemoryManager& theManager, XMLTranscoderType& theTranscoder);
55 
56  virtual
58 
59  virtual eCode
60  transcode(
61  const XalanDOMChar* theSourceData,
62  size_type theSourceCount,
63  XalanXMLByte* theTarget,
64  size_type theTargetSize,
65  size_type& theSourceCharsTranscoded,
66  size_type& theTargetBytesUsed);
67 
68  virtual eCode
69  transcode(
70  const XalanXMLByte* theSourceData,
71  size_type theSourceCount,
72  XalanDOMChar* theTarget,
73  size_type theTargetSize,
74  size_type& theSourceCharsTranscoded,
75  size_type& theTargetBytesUsed,
76  unsigned char* theCharSizes);
77 
78  virtual bool
79  canTranscodeTo(XalanUnicodeChar theChar) const;
80 
81 private:
82 
83  // Not implemented...
85 
87  operator=(const XalanToXercesTranscoderWrapper&);
88 
89 
90  // Data members...
91  XMLTranscoderType* const m_transcoder;
92 };
93 
94 
95 
96 }
97 
98 
99 
100 #endif // XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680
xalanc::XalanOutputTranscoder
Definition: XalanTranscodingServices.hpp:332
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanToXercesTranscoderWrapper::XMLTranscoderType
xercesc::XMLTranscoder XMLTranscoderType
Definition: XalanToXercesTranscoderWrapper.hpp:48
XalanTranscodingServices.hpp
xalanc::XalanToXercesTranscoderWrapper
Definition: XalanToXercesTranscoderWrapper.hpp:44
xalanc::XalanOutputTranscoder::size_type
XalanTranscodingServices::size_type size_type
Definition: XalanTranscodingServices.hpp:338
xalanc::XalanTranscodingServices::eCode
eCode
Definition: XalanTranscodingServices.hpp:79
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35
PlatformSupportDefinitions.hpp
xalanc::XalanOutputTranscoder::XalanXMLByte
XalanTranscodingServices::XalanXMLByte XalanXMLByte
Definition: XalanTranscodingServices.hpp:336