Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanICUMessageLoader.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-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 #if !defined(XALANICUMESSAGELOADER_HEADER_GUARD_1357924680)
17 #define ICUMSGLOADER_HEADER_GUARD_1357924680
18 
19 #if defined (XALAN_ICU_MSG_LOADER)
20 
21 // Base include file. Must be first.
23 
25 
27 
28 #include <xercesc/util/XMLUni.hpp>
29 
30 
31 #include <unicode/ures.h>
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 class XALAN_PLATFORMSUPPORT_EXPORT XalanICUMessageLoader : public XalanMessageLoader
38 
39 {
40 public:
41 
42  XalanICUMessageLoader(MemoryManagerType& theManager);
43 
44  virtual
45  ~XalanICUMessageLoader();
46 
47 protected:
48  // -----------------------------------------------------------------------
49  // Implementation of the virtual message loader API
50  // -----------------------------------------------------------------------
51  virtual bool loadMsg
52  (
53  XalanMessages::Codes msgToLoad
54  , XalanDOMChar* toFill
55  , unsigned int maxChars
56  );
57 
58 private:
59 
60  XalanICUMessageLoader(const XalanICUMessageLoader&);
61 
62  XalanICUMessageLoader&
63  operator=(const XalanICUMessageLoader&);
64 
65  // -----------------------------------------------------------------------
66  // Private data members
67  //
68  // fLocaleBundle
69  // pointer to the required locale specific resource bundle,
70  // or to the default locale resrouce bundle in case the required
71  // locale specific resource bundle unavailable.
72  //
73  // -----------------------------------------------------------------------
74  UResourceBundle* m_localeBundle;
75  UResourceBundle* m_domainBundle;
76 
77  const XalanDOMString m_unknownMessage;
78 };
79 
80 
81 
82 
83 XALAN_CPP_NAMESPACE_END
84 
85 #endif // defined (XALAN_ICU_MSG_LOADER)
86 
87 #endif // XALANICUMESSAGELOADER_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: XalanMessageLoader.hpp:42
Definition: XalanDOMString.hpp:42
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
virtual bool loadMsg(XalanMessages::Codes msgToLoad, XalanDOMChar *toFill, unsigned int maxChars)=0

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo