00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055
00056
00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088
00089
00090
00091 #if !defined(XMLERRORREPORTER_HPP)
00092 #define XMLERRORREPORTER_HPP
00093
00094 #include <util/XercesDefs.hpp>
00095 #include <util/XMLMsgLoader.hpp>
00096
00097
00110 class XMLErrorReporter
00111 {
00112 public:
00113
00114
00115
00116 enum ErrTypes
00117 {
00118 ErrType_Warning
00119 , ErrType_Invalid
00120 , ErrType_Fatal
00121
00122 , ErrTypes_Unknown
00123 };
00124
00125
00126
00127
00128
00129
00131
00132
00136 virtual ~XMLErrorReporter()
00137 {
00138 }
00139
00140
00141
00142
00143
00144
00145
00147
00148
00184 virtual void error
00185 (
00186 const unsigned int errCode
00187 , const XMLCh* const errDomain
00188 , const ErrTypes type
00189 , const XMLCh* const errorText
00190 , const XMLCh* const systemId
00191 , const XMLCh* const publicId
00192 , const unsigned int lineNum
00193 , const unsigned int colNum
00194 ) = 0;
00195
00202 virtual void resetErrors() = 0;
00203
00204
00205
00206
00207 protected :
00208
00210
00211
00215 XMLErrorReporter()
00216 {
00217 }
00218
00219
00220 private:
00221
00222
00223
00224 XMLErrorReporter(const XMLErrorReporter&);
00225 void operator=(const XMLErrorReporter&);
00226 };
00227
00228 #endif