Xerces-C++ 3.3.0
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// Ignore warning about private constructor
13#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
14# pragma GCC diagnostic push
15# pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
16#endif
17
19{
20public :
21 enum Codes
22 {
23 NoError = 0
107 };
108
109 static bool isFatal(const XMLValid::Codes toCheck)
110 {
111 return ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds));
112 }
113
114 static bool isWarning(const XMLValid::Codes toCheck)
115 {
116 return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds));
117 }
118
119 static bool isError(const XMLValid::Codes toCheck)
120 {
121 return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds));
122 }
123
125 {
126 if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
128 else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
130 else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds))
133 }
135 {
136 if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds))
138 else if ((toCheck >= F_LowBounds) && (toCheck <= F_HighBounds))
141 }
142
143private:
144 // -----------------------------------------------------------------------
145 // Unimplemented constructors and operators
146 // -----------------------------------------------------------------------
147 XMLValid();
148};
149
150#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
151# pragma GCC diagnostic pop
152#endif
153
155
156#endif
157
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
ErrorSeverity
The severity of the error described by the DOMError.
Definition DOMError.hpp:100
@ DOM_SEVERITY_FATAL_ERROR
Definition DOMError.hpp:103
@ DOM_SEVERITY_ERROR
Definition DOMError.hpp:102
@ DOM_SEVERITY_WARNING
Definition DOMError.hpp:101
ErrTypes
Definition XMLErrorReporter.hpp:49
@ ErrTypes_Unknown
Definition XMLErrorReporter.hpp:54
@ ErrType_Error
Definition XMLErrorReporter.hpp:51
@ ErrType_Warning
Definition XMLErrorReporter.hpp:50
@ ErrType_Fatal
Definition XMLErrorReporter.hpp:52
Definition XMLValidityCodes.hpp:19
static bool isWarning(const XMLValid::Codes toCheck)
Definition XMLValidityCodes.hpp:114
static DOMError::ErrorSeverity DOMErrorType(const XMLValid::Codes toCheck)
Definition XMLValidityCodes.hpp:134
static XMLErrorReporter::ErrTypes errorType(const XMLValid::Codes toCheck)
Definition XMLValidityCodes.hpp:124
static bool isFatal(const XMLValid::Codes toCheck)
Definition XMLValidityCodes.hpp:109
static bool isError(const XMLValid::Codes toCheck)
Definition XMLValidityCodes.hpp:119
Codes
Definition XMLValidityCodes.hpp:22
@ DatatypeValidationFailure
Definition XMLValidityCodes.hpp:76
@ NoDatatypeValidatorForAttribute
Definition XMLValidityCodes.hpp:66
@ NilAttrNotEmpty
Definition XMLValidityCodes.hpp:64
@ IC_UnknownField
Definition XMLValidityCodes.hpp:88
@ NoError
Definition XMLValidityCodes.hpp:23
@ IllegalXMLSpace
Definition XMLValidityCodes.hpp:57
@ PartialMarkupInPE
Definition XMLValidityCodes.hpp:75
@ IC_KeyMatchesNillable
Definition XMLValidityCodes.hpp:91
@ F_HighBounds
Definition XMLValidityCodes.hpp:106
@ NoDatatypeValidatorForSimpleType
Definition XMLValidityCodes.hpp:60
@ AttrValNotName
Definition XMLValidityCodes.hpp:47
@ NoDirectUseAbstractElement
Definition XMLValidityCodes.hpp:79
@ ReusedIDValue
Definition XMLValidityCodes.hpp:35
@ DatatypeError
Definition XMLValidityCodes.hpp:55
@ RepElemInMixed
Definition XMLValidityCodes.hpp:50
@ AttNotDefined
Definition XMLValidityCodes.hpp:26
@ IC_KeyNotEnoughValues
Definition XMLValidityCodes.hpp:90
@ NillNotAllowed
Definition XMLValidityCodes.hpp:63
@ UnknownBaseDatatype
Definition XMLValidityCodes.hpp:53
@ TypeNoSubforBlock
Definition XMLValidityCodes.hpp:84
@ ProhibitedAttributePresent
Definition XMLValidityCodes.hpp:56
@ IC_KeyNotFound
Definition XMLValidityCodes.hpp:95
@ DisplayErrorMessage
Definition XMLValidityCodes.hpp:62
@ UniqueParticleAttributionFail
Definition XMLValidityCodes.hpp:77
@ EmptyElemNotationAttr
Definition XMLValidityCodes.hpp:97
@ NoAttNormForStandalone
Definition XMLValidityCodes.hpp:72
@ ElementNotUnQualified
Definition XMLValidityCodes.hpp:69
@ AttNotDefinedForElement
Definition XMLValidityCodes.hpp:40
@ ElementNotQualified
Definition XMLValidityCodes.hpp:68
@ AttributeNotQualified
Definition XMLValidityCodes.hpp:85
@ E_HighBounds
Definition XMLValidityCodes.hpp:102
@ F_LowBounds
Definition XMLValidityCodes.hpp:105
@ BadEntityRefAttr
Definition XMLValidityCodes.hpp:41
@ EmptyNotValidForContent
Definition XMLValidityCodes.hpp:39
@ DoesNotMatchEnumList
Definition XMLValidityCodes.hpp:46
@ IC_DuplicateKey
Definition XMLValidityCodes.hpp:93
@ RequiredAttrNotProvided
Definition XMLValidityCodes.hpp:29
@ ElemChildrenHasInvalidWS
Definition XMLValidityCodes.hpp:101
@ BadXsiType
Definition XMLValidityCodes.hpp:81
@ FixedDifferentFromActual
Definition XMLValidityCodes.hpp:65
@ NoUseAbstractType
Definition XMLValidityCodes.hpp:80
@ BadIDAttrDefType
Definition XMLValidityCodes.hpp:31
@ GenericError
Definition XMLValidityCodes.hpp:67
@ UnknownEntityRefAttr
Definition XMLValidityCodes.hpp:42
@ FeatureUnsupported
Definition XMLValidityCodes.hpp:51
@ W_HighBounds
Definition XMLValidityCodes.hpp:104
@ EmptyElemHasContent
Definition XMLValidityCodes.hpp:98
@ W_LowBounds
Definition XMLValidityCodes.hpp:103
@ NonWSContent
Definition XMLValidityCodes.hpp:96
@ NoAbstractInXsiType
Definition XMLValidityCodes.hpp:78
@ ElementNotValidForContent
Definition XMLValidityCodes.hpp:30
@ NoContentForRef
Definition XMLValidityCodes.hpp:54
@ GroupContentRestricted
Definition XMLValidityCodes.hpp:52
@ ElementAlreadyExists
Definition XMLValidityCodes.hpp:33
@ IC_DuplicateUnique
Definition XMLValidityCodes.hpp:92
@ ElemNoSubforBlock
Definition XMLValidityCodes.hpp:83
@ IC_FieldMultipleMatch
Definition XMLValidityCodes.hpp:87
@ RootElemNotLikeDocType
Definition XMLValidityCodes.hpp:28
@ WrongTargetNamespace
Definition XMLValidityCodes.hpp:58
@ NotationNotDeclared
Definition XMLValidityCodes.hpp:27
@ VC_IllegalRefInStandalone
Definition XMLValidityCodes.hpp:70
@ AttrDupToken
Definition XMLValidityCodes.hpp:100
@ SimpleTypeHasChild
Definition XMLValidityCodes.hpp:59
@ AttributeNotUnQualified
Definition XMLValidityCodes.hpp:86
@ UndeclaredElemInDocType
Definition XMLValidityCodes.hpp:38
@ VC_EntityNotFound
Definition XMLValidityCodes.hpp:74
@ E_LowBounds
Definition XMLValidityCodes.hpp:24
@ NotEnoughElemsForCM
Definition XMLValidityCodes.hpp:44
@ InvalidEmptyAttValue
Definition XMLValidityCodes.hpp:32
@ IC_KeyRefOutOfScope
Definition XMLValidityCodes.hpp:94
@ MultipleIdAttrs
Definition XMLValidityCodes.hpp:34
@ NoCharDataInCM
Definition XMLValidityCodes.hpp:45
@ NotSameAsFixedValue
Definition XMLValidityCodes.hpp:49
@ NoDefAttForStandalone
Definition XMLValidityCodes.hpp:71
@ ElementNotDefined
Definition XMLValidityCodes.hpp:25
@ ElemOneNotationAttr
Definition XMLValidityCodes.hpp:99
@ NoWSForStandalone
Definition XMLValidityCodes.hpp:73
@ UnknownNotRefAttr
Definition XMLValidityCodes.hpp:37
@ ColonNotValidWithNS
Definition XMLValidityCodes.hpp:43
@ IDNotDeclared
Definition XMLValidityCodes.hpp:36
@ NonDerivedXsiType
Definition XMLValidityCodes.hpp:82
@ GrammarNotFound
Definition XMLValidityCodes.hpp:61
@ IC_AbsentKeyValue
Definition XMLValidityCodes.hpp:89
@ NoMultipleValues
Definition XMLValidityCodes.hpp:48