Xalan-C++ API Reference 1.12.0
XalanMessageLoader.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(XALANMESSAGELOADER_HEADER_GUARD_1357924680)
19#define XALANMESSAGELOADER_HEADER_GUARD_1357924680
20
21
22// Base include file. Must be first.
24
25
26
28
29
30
32
33
34
35#include "LocalMsgIndex.hpp"
36
37
38
39namespace XALAN_CPP_NAMESPACE {
40
41
42
43using xercesc::MemoryManager;
44
45
46
47// class for calling fom outside of the module
49
50
51public:
52 template <class Type>
54 {
55 public:
56
57 Type*
58 operator()(MemoryManager& theManager)
59 {
61
62 Type* const theResult =
63 new (theGuard.get()) Type(theManager);
64
66
67 return theResult;
68 }
69 };
70
72 {
73 public:
74 void
76 MemoryManager& theManager,
78 {
79 assert(p != 0);
80
82 }
83 };
84
85 virtual
87
89 {
90 }
91
92 static void
93 initialize(MemoryManager& theManager);
94
95 static void
97
98 static XalanDOMString&
101 XalanMessages::Codes msgToLoad,
102 const char* repText1 ,
103 const char* repText2 = 0,
104 const char* repText3 = 0,
105 const char* repText4 = 0);
106
107 static XalanDOMString&
110 XalanMessages::Codes msgToLoad,
111 const XalanDOMChar* repText1,
112 const XalanDOMChar* repText2 = 0,
113 const XalanDOMChar* repText3 = 0,
114 const XalanDOMChar* repText4 = 0);
115
116 static XalanDOMString&
119 XalanMessages::Codes msgToLoad);
120
121 static XalanDOMString&
124 XalanMessages::Codes msgToLoad,
125 const XalanDOMString& repText1);
126
127 static XalanDOMString&
130 XalanMessages::Codes msgToLoad,
131 const XalanDOMString& repText1,
132 const XalanDOMString& repText2);
133
134 static XalanDOMString&
137 XalanMessages::Codes msgToLoad,
138 const XalanDOMString& repText1,
139 const XalanDOMString& repText2,
140 const XalanDOMString& repText3);
141
142protected:
143
144 virtual bool
146 XalanMessages::Codes msgToLoad,
149
150private:
151
152 bool
153 load(
154 XalanMessages::Codes msgToLoad,
155 MemoryManager& theMemoryManager,
158 const XalanDOMChar* repText1,
159 const XalanDOMChar* repText2 = 0,
160 const XalanDOMChar* repText3 = 0,
161 const XalanDOMChar* repText4 = 0);
162
163 bool
164 load(
165 XalanMessages::Codes msgToLoad,
166 MemoryManager& theManager,
169 const char* repText1 ,
170 const char* repText2 = 0,
171 const char* repText3 = 0,
172 const char* repText4 = 0);
173
175
177 operator=(const XalanMessageLoader&);
178
179 static XalanMessageLoader* s_msgLoader;
180};
181
182
183
184}
185
186#endif // XALANMESSAGELOADER_HEADER_GUARD_1357924680
#define XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
void operator()(MemoryManager &theManager, XalanMessageLoader *p)
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad, const char *repText1, const char *repText2=0, const char *repText3=0, const char *repText4=0)
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad, const XalanDOMString &repText1, const XalanDOMString &repText2)
static void initialize(MemoryManager &theManager)
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad)
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad, const XalanDOMString &repText1, const XalanDOMString &repText2, const XalanDOMString &repText3)
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad, const XalanDOMString &repText1)
virtual bool loadMsg(XalanMessages::Codes msgToLoad, XalanDOMChar *toFill, XalanSize_t maxChars)=0
static XalanDOMString & getMessage(XalanDOMString &theResultMessage, XalanMessages::Codes msgToLoad, const XalanDOMChar *repText1, const XalanDOMChar *repText2=0, const XalanDOMChar *repText3=0, const XalanDOMChar *repText4=0)
void XalanDestroy(Type &theArg)