Stores errors (and messages) encountered while processing XML.


Functions | |
| LIBLAX_EXTERN void | XMLErrorLog_add (XMLErrorLog_t *log, const XMLError_t *error) |
| Logs the given XMLError_t structure. | |
| LIBLAX_EXTERN void | XMLErrorLog_clearLog (XMLErrorLog_t *log) |
| Removes all errors from this log. | |
| LIBLAX_EXTERN XMLErrorLog_t * | XMLErrorLog_create (void) |
| Creates a new empty XMLErrorLog_t structure and returns it. | |
| LIBLAX_EXTERN void | XMLErrorLog_free (XMLErrorLog_t *log) |
| Frees the given XMLError_t structure. | |
| LIBLAX_EXTERN const XMLError_t * | XMLErrorLog_getError (const XMLErrorLog_t *log, unsigned int n) |
| Returns the nth XMLError_t in this log. | |
| LIBLAX_EXTERN unsigned int | XMLErrorLog_getNumErrors (const XMLErrorLog_t *log) |
| Returns the number of errors that have been logged. | |
| LIBLAX_EXTERN void XMLErrorLog_add | ( | XMLErrorLog_t * | log, |
| const XMLError_t * | error | ||
| ) |
Logs the given XMLError_t structure.
| log | XMLErrorLog_t, the error log to be added to. |
| error | XMLError_t, the error to be logged. |
| LIBLAX_EXTERN void XMLErrorLog_clearLog | ( | XMLErrorLog_t * | log | ) |
Removes all errors from this log.
| log | XMLErrorLog_t, the error log to be cleared. |
| LIBLAX_EXTERN XMLErrorLog_t* XMLErrorLog_create | ( | void | ) |
Creates a new empty XMLErrorLog_t structure and returns it.
| LIBLAX_EXTERN void XMLErrorLog_free | ( | XMLErrorLog_t * | log | ) |
Frees the given XMLError_t structure.
| log | XMLErrorLog_t, the error log to be freed. |
| LIBLAX_EXTERN const XMLError_t* XMLErrorLog_getError | ( | const XMLErrorLog_t * | log, |
| unsigned int | n | ||
| ) |
Returns the nth XMLError_t in this log.
| log | XMLErrorLog_t, the error log to be queried. |
| n | unsigned int number of the error to retrieve. |
| LIBLAX_EXTERN unsigned int XMLErrorLog_getNumErrors | ( | const XMLErrorLog_t * | log | ) |
Returns the number of errors that have been logged.
| log | XMLErrorLog_t, the error log to be queried. |