Xerces-C++  3.1.2
XMLValidityCodes.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_XMLValid)
4 #define XERCESC_INCLUDE_GUARD_ERRHEADER_XMLValid
5 
9 
11 
12 class XMLValid
13 {
14 public :
15  enum Codes
16  {
17  NoError = 0
61  , GenericError = 44
75  , BadXsiType = 58
90  , NonWSContent = 73
94  , AttrDupToken = 77
96  , E_HighBounds = 79
97  , W_LowBounds = 80
98  , W_HighBounds = 81
99  , F_LowBounds = 82
101  };
102 
103  static bool isFatal(const XMLValid::Codes toCheck)
104  {
105  return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
106  }
107 
108  static bool isWarning(const XMLValid::Codes toCheck)
109  {
110  return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
111  }
112 
113  static bool isError(const XMLValid::Codes toCheck)
114  {
115  return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
116  }
117 
119  {
120  if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
122  else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
124  else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
127  }
129  {
130  if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
132  else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
134  else return DOMError::DOM_SEVERITY_ERROR;
135  }
136 
137 private:
138  // -----------------------------------------------------------------------
139  // Unimplemented constructors and operators
140  // -----------------------------------------------------------------------
141  XMLValid();
142 };
143 
145 
146 #endif
147 
Definition: XMLValidityCodes.hpp:94
Definition: XMLValidityCodes.hpp:68
Definition: XMLValidityCodes.hpp:45
Definition: XMLValidityCodes.hpp:98
Definition: XMLValidityCodes.hpp:82
Definition: XMLValidityCodes.hpp:70
Definition: XMLValidityCodes.hpp:27
Definition: XMLValidityCodes.hpp:67
Definition: DOMError.hpp:101
Definition: XMLValidityCodes.hpp:33
Definition: XMLValidityCodes.hpp:42
Definition: XMLValidityCodes.hpp:77
Definition: XMLValidityCodes.hpp:41
Definition: XMLValidityCodes.hpp:43
Definition: XMLValidityCodes.hpp:85
Definition: XMLValidityCodes.hpp:96
Definition: XMLErrorReporter.hpp:54
Definition: XMLValidityCodes.hpp:79
Definition: XMLValidityCodes.hpp:26
Definition: XMLValidityCodes.hpp:53
Definition: XMLValidityCodes.hpp:36
Definition: XMLValidityCodes.hpp:78
Definition: XMLValidityCodes.hpp:49
Definition: XMLValidityCodes.hpp:63
Definition: XMLValidityCodes.hpp:17
Definition: XMLValidityCodes.hpp:32
Definition: XMLValidityCodes.hpp:59
Definition: XMLValidityCodes.hpp:58
Definition: XMLValidityCodes.hpp:72
static bool isError(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:113
Definition: XMLValidityCodes.hpp:47
Definition: XMLValidityCodes.hpp:40
Definition: XMLErrorReporter.hpp:50
Definition: XMLValidityCodes.hpp:65
Definition: XMLValidityCodes.hpp:29
Definition: XMLValidityCodes.hpp:88
Definition: XMLErrorReporter.hpp:51
Definition: XMLValidityCodes.hpp:74
Definition: XMLValidityCodes.hpp:93
ErrorSeverity
The severity of the error described by the DOMError.
Definition: DOMError.hpp:99
static bool isWarning(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:108
ErrTypes
Definition: XMLErrorReporter.hpp:48
Definition: DOMError.hpp:102
Definition: XMLValidityCodes.hpp:87
Definition: XMLValidityCodes.hpp:44
Definition: XMLValidityCodes.hpp:83
Codes
Definition: XMLValidityCodes.hpp:15
Definition: XMLValidityCodes.hpp:38
Definition: XMLValidityCodes.hpp:56
Definition: XMLValidityCodes.hpp:95
Definition: XMLValidityCodes.hpp:81
Definition: XMLValidityCodes.hpp:61
Definition: XMLValidityCodes.hpp:37
Definition: XMLValidityCodes.hpp:54
Definition: XMLValidityCodes.hpp:80
Definition: XMLValidityCodes.hpp:21
Definition: XMLValidityCodes.hpp:75
Definition: XMLValidityCodes.hpp:25
Definition: XMLValidityCodes.hpp:50
static DOMError::ErrorSeverity DOMErrorType(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:128
Definition: XMLValidityCodes.hpp:89
Definition: XMLValidityCodes.hpp:20
Definition: XMLErrorReporter.hpp:52
static XMLErrorReporter::ErrTypes errorType(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:118
Definition: XMLValidityCodes.hpp:23
Definition: XMLValidityCodes.hpp:24
Definition: XMLValidityCodes.hpp:46
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
Definition: XMLValidityCodes.hpp:91
Definition: XMLValidityCodes.hpp:51
Definition: XMLValidityCodes.hpp:19
Definition: XMLValidityCodes.hpp:86
Definition: XMLValidityCodes.hpp:28
Definition: XMLValidityCodes.hpp:92
Definition: XMLValidityCodes.hpp:71
Definition: XMLValidityCodes.hpp:73
Definition: XMLValidityCodes.hpp:66
Definition: XMLValidityCodes.hpp:22
Definition: XMLValidityCodes.hpp:69
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: XMLValidityCodes.hpp:48
Definition: XMLValidityCodes.hpp:57
Definition: XMLValidityCodes.hpp:100
Definition: XMLValidityCodes.hpp:60
Definition: XMLValidityCodes.hpp:99
Definition: XMLValidityCodes.hpp:12
Definition: XMLValidityCodes.hpp:97
Definition: XMLValidityCodes.hpp:31
Definition: XMLValidityCodes.hpp:84
Definition: XMLValidityCodes.hpp:64
static bool isFatal(const XMLValid::Codes toCheck)
Definition: XMLValidityCodes.hpp:103
Definition: XMLValidityCodes.hpp:52
Definition: XMLValidityCodes.hpp:34
Definition: XMLValidityCodes.hpp:62
Definition: DOMError.hpp:103
Definition: XMLValidityCodes.hpp:55
Definition: XMLValidityCodes.hpp:30
Definition: XMLValidityCodes.hpp:39
Definition: XMLValidityCodes.hpp:76
Definition: XMLValidityCodes.hpp:90
Definition: XMLValidityCodes.hpp:18
Definition: XMLValidityCodes.hpp:35