00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680) 00019 #define XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00025 00026 00027 00028 // Base class header file... 00029 #include <xalanc/PlatformSupport/XalanTranscodingServices.hpp> 00030 00031 00032 00033 XALAN_DECLARE_XERCES_CLASS(XMLTranscoder) 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class XALAN_PLATFORMSUPPORT_EXPORT XalanToXercesTranscoderWrapper : public XalanOutputTranscoder 00042 { 00043 public: 00044 00045 typedef XERCES_CPP_NAMESPACE_QUALIFIER XMLTranscoder XMLTranscoderType; 00046 00047 explicit 00048 XalanToXercesTranscoderWrapper(MemoryManager& theManager, XMLTranscoderType& theTranscoder); 00049 00050 static XalanToXercesTranscoderWrapper* 00051 create(MemoryManager& theManager, XMLTranscoderType& theTranscoder); 00052 00053 virtual 00054 ~XalanToXercesTranscoderWrapper(); 00055 00056 virtual eCode 00057 transcode( 00058 const XalanDOMChar* theSourceData, 00059 size_type theSourceCount, 00060 XalanXMLByte* theTarget, 00061 size_type theTargetSize, 00062 size_type& theSourceCharsTranscoded, 00063 size_type& theTargetBytesUsed); 00064 00065 virtual eCode 00066 transcode( 00067 const XalanXMLByte* theSourceData, 00068 size_type theSourceCount, 00069 XalanDOMChar* theTarget, 00070 size_type theTargetSize, 00071 size_type& theSourceCharsTranscoded, 00072 size_type& theTargetBytesUsed, 00073 unsigned char* theCharSizes); 00074 00075 virtual bool 00076 canTranscodeTo(XalanUnicodeChar theChar) const; 00077 00078 private: 00079 00080 // Not implemented... 00081 XalanToXercesTranscoderWrapper(const XalanToXercesTranscoderWrapper&); 00082 00083 XalanToXercesTranscoderWrapper& 00084 operator=(const XalanToXercesTranscoderWrapper&); 00085 00086 00087 // Data members... 00088 XMLTranscoderType* const m_transcoder; 00089 }; 00090 00091 00092 00093 XALAN_CPP_NAMESPACE_END 00094 00095 00096 00097 #endif // XALANTOXERCESTRANSCODERWRAPPER_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|