// This file is generated, don't edit it!! #if !defined(ERRHEADER_XML4CValid) #define ERRHEADER_XML4CValid #include class XML4CValid { public : enum Codes { NoError = 0 , V_LowBounds = 1 , ElementNotDefined = 2 , AttNotDefined = 3 , NotationNotDeclared = 4 , RootElemNotLikeDocType = 5 , RequiredAttrNotProvided = 6 , ElementNotValidForContent = 7 , BadIDAttrDefType = 8 , InvalidEmptyAttValue = 9 , ElementAlreadyExists = 10 , MultipleIdAttrs = 11 , ReusedIDValue = 12 , IDNotDeclared = 13 , UnknownNotRefAttr = 14 , UndeclaredElemInDocType = 15 , EmptyNotValidForContent = 16 , AttNotDefinedForElement = 17 , BadEntityRefAttr = 18 , UnknownEntityRefAttr = 19 , NotEnoughElemsForCM = 20 , NoCharDataInCM = 21 , DoesNotMatchEnumList = 22 , AttrValNotName = 23 , NoMultipleValues = 24 , NotSameAsFixedValue = 25 , RepElemInMixed = 26 , V_HighBounds = 27 , W_LowBounds = 28 , W_HighBounds = 29 , E_LowBounds = 30 , E_HighBounds = 31 }; static bool isFatal(const XML4CValid::Codes toCheck) { return ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds)); } static bool isWarning(const XML4CValid::Codes toCheck) { return ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds)); } static bool isValid(const XML4CValid::Codes toCheck) { return ((toCheck >= V_LowBounds) && (toCheck <= V_HighBounds)); } static XMLErrorReporter::ErrTypes errorType(const XML4CValid::Codes toCheck) { if ((toCheck >= W_LowBounds) && (toCheck <= W_HighBounds)) return XMLErrorReporter::ErrType_Warning; else if ((toCheck >= E_LowBounds) && (toCheck <= E_HighBounds)) return XMLErrorReporter::ErrType_Fatal; else if ((toCheck >= V_LowBounds) && (toCheck <= V_HighBounds)) return XMLErrorReporter::ErrType_Invalid; return XMLErrorReporter::ErrTypes_Unknown; } }; #endif