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(XALANENCODINGPROPERTYCACHE_HEADER_GUARD_1357924680) 00019 #define XALANENCODINGPROPERTYCACHE_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp> 00024 00025 00026 00027 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00028 00029 00030 00031 #include <xalanc/PlatformSupport/XalanBitmap.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XalanOutputTranscoder; 00040 00041 00042 00043 00044 class XALAN_PLATFORMSUPPORT_EXPORT XalanEncodingPropertyCache 00045 { 00046 public: 00047 00048 XalanEncodingPropertyCache( 00049 MemoryManager& theManager, 00050 size_t theCacheSize = XalanDOMChar(~0), 00051 const XalanOutputTranscoder* theTranscoder = 0); 00052 00053 ~XalanEncodingPropertyCache(); 00054 00055 bool 00056 canEncodeCharacter(XalanUnicodeChar theChar) const; 00057 00058 const XalanOutputTranscoder* 00059 getTranscoder() const 00060 { 00061 return m_transcoder; 00062 } 00063 00064 void 00065 setTranscoder(const XalanOutputTranscoder* theTranscoder) 00066 { 00067 m_transcoder = theTranscoder; 00068 } 00069 private: 00070 00071 const XalanOutputTranscoder* m_transcoder; 00072 00073 mutable XalanBitmap m_presentBitmap; 00074 00075 mutable XalanBitmap m_valueBitmap; 00076 }; 00077 00078 00079 00080 XALAN_CPP_NAMESPACE_END 00081 00082 00083 00084 #endif // XALANENCODINGPROPERTYCACHE_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 |
|