Xerces-C++  3.1.2
XMLDOMMsg.hpp
Go to the documentation of this file.
1 // This file is generated, don't edit it!!
2 
3 #if !defined(XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg)
4 #define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLDOMMsg
5 
9 
11 
12 class XMLDOMMsg
13 {
14 public :
15  enum Codes
16  {
17  NoError = 0
31  , SYNTAX_ERR = 14
41  , PARSE_ERR = 24
45  , TYPE_ERR = 28
53  , F_HighBounds = 36
54  , W_LowBounds = 37
55  , W_HighBounds = 38
56  , E_LowBounds = 39
57  , E_HighBounds = 40
58  };
59 
60  static bool isFatal(const XMLDOMMsg::Codes toCheck)
61  {
62  return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
63  }
64 
65  static bool isWarning(const XMLDOMMsg::Codes toCheck)
66  {
67  return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
68  }
69 
70  static bool isError(const XMLDOMMsg::Codes toCheck)
71  {
72  return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
73  }
74 
76  {
77  if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
79  else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
81  else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
84  }
86  {
87  if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
89  else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
91  else return DOMError::DOM_SEVERITY_ERROR;
92  }
93 
94 private:
95  // -----------------------------------------------------------------------
96  // Unimplemented constructors and operators
97  // -----------------------------------------------------------------------
98  XMLDOMMsg();
99 };
100 
102 
103 #endif
104 
Definition: XMLDOMMsg.hpp:36
Definition: XMLDOMMsg.hpp:38
static bool isFatal(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:60
static bool isWarning(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:65
Definition: DOMError.hpp:101
Definition: XMLDOMMsg.hpp:50
Definition: XMLErrorReporter.hpp:54
Definition: XMLDOMMsg.hpp:26
Definition: XMLDOMMsg.hpp:43
Codes
Definition: XMLDOMMsg.hpp:15
Definition: XMLDOMMsg.hpp:54
Definition: XMLDOMMsg.hpp:35
Definition: XMLDOMMsg.hpp:49
Definition: XMLDOMMsg.hpp:30
Definition: XMLDOMMsg.hpp:18
Definition: XMLDOMMsg.hpp:46
Definition: XMLErrorReporter.hpp:50
Definition: XMLErrorReporter.hpp:51
Definition: XMLDOMMsg.hpp:25
Definition: XMLDOMMsg.hpp:17
ErrorSeverity
The severity of the error described by the DOMError.
Definition: DOMError.hpp:99
ErrTypes
Definition: XMLErrorReporter.hpp:48
Definition: XMLDOMMsg.hpp:29
Definition: DOMError.hpp:102
Definition: XMLDOMMsg.hpp:20
Definition: XMLDOMMsg.hpp:31
Definition: XMLDOMMsg.hpp:32
Definition: XMLDOMMsg.hpp:51
Definition: XMLDOMMsg.hpp:28
Definition: XMLDOMMsg.hpp:24
Definition: XMLDOMMsg.hpp:57
Definition: XMLDOMMsg.hpp:53
static DOMError::ErrorSeverity DOMErrorType(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:85
Definition: XMLDOMMsg.hpp:23
Definition: XMLErrorReporter.hpp:52
static XMLErrorReporter::ErrTypes errorType(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:75
Definition: XMLDOMMsg.hpp:48
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
Definition: XMLDOMMsg.hpp:55
Definition: XMLDOMMsg.hpp:22
Definition: XMLDOMMsg.hpp:37
Definition: XMLDOMMsg.hpp:44
Definition: XMLDOMMsg.hpp:47
Definition: XMLDOMMsg.hpp:41
Definition: XMLDOMMsg.hpp:39
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: XMLDOMMsg.hpp:34
Definition: XMLDOMMsg.hpp:45
Definition: XMLDOMMsg.hpp:12
Definition: XMLDOMMsg.hpp:56
Definition: XMLDOMMsg.hpp:40
Definition: XMLDOMMsg.hpp:33
Definition: XMLDOMMsg.hpp:21
Definition: XMLDOMMsg.hpp:19
Definition: DOMError.hpp:103
static bool isError(const XMLDOMMsg::Codes toCheck)
Definition: XMLDOMMsg.hpp:70
Definition: XMLDOMMsg.hpp:27
Definition: XMLDOMMsg.hpp:42
Definition: XMLDOMMsg.hpp:52