Xerces-C++
3.1.3
Main Page
Related Pages
Classes
Files
File List
File Members
src
xercesc
util
OutOfMemoryException.hpp
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
/*
19
* $Id: OutOfMemoryException.hpp 673960 2008-07-04 08:50:12Z borisk $
20
*/
21
22
#if !defined(XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP)
23
#define XERCESC_INCLUDE_GUARD_OUT_OF_MEMORY_EXCEPTION_HPP
24
25
#include <
xercesc/util/XercesDefs.hpp
>
26
#include <
xercesc/util/XMemory.hpp
>
27
#include <xercesc/util/XMLExceptMsgs.hpp>
28
#include <
xercesc/util/XMLUniDefs.hpp
>
29
30
XERCES_CPP_NAMESPACE_BEGIN
31
32
static
const
XMLCh
gDefOutOfMemoryErrMsg[] =
33
{
34
chLatin_O
,
chLatin_u
,
chLatin_t
,
chLatin_O
35
,
chLatin_f
,
chLatin_M
,
chLatin_e
,
chLatin_m
36
,
chLatin_o
,
chLatin_r
,
chLatin_y
,
chNull
37
};
38
39
class
XMLUTIL_EXPORT
OutOfMemoryException
:
public
XMemory
40
{
41
public
:
42
43
OutOfMemoryException
();
44
~
OutOfMemoryException
();
45
// -----------------------------------------------------------------------
46
// Getter methods
47
// -----------------------------------------------------------------------
48
XMLExcepts::Codes getCode()
const
;
49
const
XMLCh
* getMessage()
const
;
50
const
XMLCh
* getType()
const
;
51
const
char
* getSrcFile()
const
;
52
XMLFileLoc
getSrcLine()
const
;
53
54
OutOfMemoryException
(
const
OutOfMemoryException
& toCopy);
55
OutOfMemoryException
& operator=(
const
OutOfMemoryException
& toAssign);
56
};
57
58
// constructors/destructors...
59
inline
OutOfMemoryException::OutOfMemoryException
() {}
60
inline
OutOfMemoryException::~OutOfMemoryException
() {}
61
inline
OutOfMemoryException::OutOfMemoryException
(
const
OutOfMemoryException
& other) :
XMemory
(other) {}
62
inline
OutOfMemoryException
&
OutOfMemoryException::operator=
(
const
OutOfMemoryException
&)
63
{
64
return
*
this
;
65
}
66
67
// ---------------------------------------------------------------------------
68
// OutOfMemoryException: Getter methods
69
// ---------------------------------------------------------------------------
70
inline
XMLExcepts::Codes
OutOfMemoryException::getCode
()
const
71
{
72
return
XMLExcepts::Out_Of_Memory;
73
}
74
75
inline
const
XMLCh
*
OutOfMemoryException::getMessage
()
const
76
{
77
return
gDefOutOfMemoryErrMsg;
78
}
79
80
inline
const
XMLCh
*
OutOfMemoryException::getType
()
const
81
{
82
return
gDefOutOfMemoryErrMsg;
83
}
84
85
inline
const
char
*
OutOfMemoryException::getSrcFile
()
const
86
{
87
return
""
;
88
}
89
90
inline
XMLFileLoc
OutOfMemoryException::getSrcLine
()
const
{
91
return
0;
92
}
93
94
XERCES_CPP_NAMESPACE_END
95
96
#endif
Generated on Mon Feb 1 2016 13:04:19 for Xerces-C++ by
1.8.1.2