Xalan-C++ API Reference  1.12.0
XalanNLSMessageLoader.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 
19 #if !defined(XALANNLSMESSAGELOADER_HEADER_GUARD_1357924680)
20 #define XALANNLSMESSAGELOADER_HEADER_GUARD_1357924680
21 
22 #ifdef XALAN_NLS_MSG_LOADER
23 
25 
26 #include <nl_types.h>
27 
28 namespace XALAN_CPP_NAMESPACE {
29 
30 class XALAN_PLATFORMSUPPORT_EXPORT XalanNLSMessageLoader : public XalanMessageLoader
31 
32 {
33 public:
34 
35  XalanNLSMessageLoader(MemoryManager& theManager);
36 
37  virtual
38  ~XalanNLSMessageLoader();
39 
40 protected:
41 
42  // -----------------------------------------------------------------------
43  // Implementation of the virtual message loader API
44  // -----------------------------------------------------------------------
45  virtual bool
46  loadMsg(
47  XalanMessages::Codes msgToLoad,
48  XalanDOMChar* toFill,
49  XalanSize_t maxChars
50  );
51 
52 private:
53 
54  XalanNLSMessageLoader(const XalanNLSMessageLoader&);
55 
56  XalanNLSMessageLoader&
57  operator=(const XalanNLSMessageLoader&);
58 
59 
60  nl_catd m_catalogHandle;
61 
62  MemoryManager& m_memoryManager;
63 };
64 
65 }
66 
67 #endif // XALAN_NLS_MSG_LOADER
68 
69 #endif // XALANNLSMESSAGELOADER_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
XalanMessageLoader.hpp
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35