Xerces-C++: SAXException.hpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#if !defined(XERCESC_INCLUDE_GUARD_SAXEXCEPTION_HPP)
23#define XERCESC_INCLUDE_GUARD_SAXEXCEPTION_HPP
24
28
30
31
52{
53public:
61
62 fMsg(XMLString::replicate(XMLUni::fgZeroLenString, manager))
63 , fMemoryManager(manager)
64 {
65 }
66
76
77 fMsg(XMLString::replicate(msg, manager))
78 , fMemoryManager(manager)
79 {
80 }
81
91
92 fMsg(XMLString::transcode(msg, manager))
93 , fMemoryManager(manager)
94 {
95 }
96
104 , fMsg(XMLString::replicate(toCopy.fMsg, toCopy.fMemoryManager))
105 , fMemoryManager(toCopy.fMemoryManager)
106 {
107 }
108
111 {
112 fMemoryManager->deallocate(fMsg);
113 }
114
116
117
126 {
127 if (this == &toCopy)
128 return *this;
129
130 fMemoryManager->deallocate(fMsg);
133 return *this;
134 }
136
144 {
145 return fMsg;
146 }
148
149
150protected :
151
152
153
154
155
156
159};
160
162{
163
164public:
166
176
186
193};
194
196{
197public:
199
209
219
226};
227
229
230#endif
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define SAX_EXPORT
Definition XercesDefs.hpp:164
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Configurable memory manager.
Definition MemoryManager.hpp:40
Encapsulate a general SAX error or warning.
Definition SAXException.hpp:52
SAXException(const XMLCh *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
Definition SAXException.hpp:74
virtual ~SAXException()
Destructor.
Definition SAXException.hpp:110
MemoryManager * fMemoryManager
Definition SAXException.hpp:158
SAXException(const char *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
Definition SAXException.hpp:89
SAXException & operator=(const SAXException &toCopy)
Assignment operator.
Definition SAXException.hpp:125
virtual const XMLCh * getMessage() const
Get the contents of the message.
Definition SAXException.hpp:143
XMLCh * fMsg
Definition SAXException.hpp:157
SAXException(const SAXException &toCopy)
Copy constructor.
Definition SAXException.hpp:102
SAXException(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Default constructor.
Definition SAXException.hpp:60
Definition SAXException.hpp:196
SAXNotRecognizedException(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
SAXNotRecognizedException(const SAXException &toCopy)
Copy constructor.
SAXNotRecognizedException(const char *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
SAXNotRecognizedException(const XMLCh *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
Definition SAXException.hpp:162
SAXNotSupportedException(const char *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
SAXNotSupportedException(const SAXException &toCopy)
Copy constructor.
SAXNotSupportedException(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
SAXNotSupportedException(const XMLCh *const msg, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Create a new SAXException.
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
Class for representing native character strings and handling common string operations.
Definition XMLString.hpp:46
static char * replicate(const char *const toRep, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
Replicates a string NOTE: The returned buffer is allocated with the MemoryManager.
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41