Xalan-C++ API Reference  1.12.0
XalanEncodingPropertyCache.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(XALANENCODINGPROPERTYCACHE_HEADER_GUARD_1357924680)
19 #define XALANENCODINGPROPERTYCACHE_HEADER_GUARD_1357924680
20 
21 
22 
24 
25 
26 
28 
29 
30 
32 
33 
34 
35 namespace XALAN_CPP_NAMESPACE {
36 
37 
38 
39 class XalanOutputTranscoder;
40 
41 
42 
43 
45 {
46 public:
47 
49  MemoryManager& theManager,
50  size_t theCacheSize = XalanDOMChar(~0),
51  const XalanOutputTranscoder* theTranscoder = 0);
52 
54 
55  bool
56  canEncodeCharacter(XalanUnicodeChar theChar) const;
57 
59  getTranscoder() const
60  {
61  return m_transcoder;
62  }
63 
64  void
65  setTranscoder(const XalanOutputTranscoder* theTranscoder)
66  {
67  m_transcoder = theTranscoder;
68  }
69 private:
70 
71  const XalanOutputTranscoder* m_transcoder;
72 
73  mutable XalanBitmap m_presentBitmap;
74 
75  mutable XalanBitmap m_valueBitmap;
76 };
77 
78 
79 
80 }
81 
82 
83 
84 #endif // XALANENCODINGPROPERTYCACHE_HEADER_GUARD_1357924680
xalanc::XalanEncodingPropertyCache::getTranscoder
const XalanOutputTranscoder * getTranscoder() const
Definition: XalanEncodingPropertyCache.hpp:59
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
XalanDOMString.hpp
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35
PlatformSupportDefinitions.hpp
xalanc::XalanBitmap
Definition: XalanBitmap.hpp:36
xalanc::XalanEncodingPropertyCache
Definition: XalanEncodingPropertyCache.hpp:44
xalanc::XalanEncodingPropertyCache::setTranscoder
void setTranscoder(const XalanOutputTranscoder *theTranscoder)
Definition: XalanEncodingPropertyCache.hpp:65
XalanBitmap.hpp