XMLErrorLog.cpp File Reference

Detailed Description

Stores errors (and messages) encountered while processing XML.

Author:
Ben Bornstein
Include dependency graph for XMLErrorLog.cpp:

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.

Function Documentation

LIBLAX_EXTERN void XMLErrorLog_add ( XMLErrorLog_t *  log,
const XMLError_t *  error 
)

Logs the given XMLError_t structure.

Parameters:
logXMLErrorLog_t, the error log to be added to.
errorXMLError_t, the error to be logged.
LIBLAX_EXTERN void XMLErrorLog_clearLog ( XMLErrorLog_t *  log)

Removes all errors from this log.

Parameters:
logXMLErrorLog_t, the error log to be cleared.
LIBLAX_EXTERN XMLErrorLog_t* XMLErrorLog_create ( void  )

Creates a new empty XMLErrorLog_t structure and returns it.

Returns:
the new XMLErrorLog_t structure.
LIBLAX_EXTERN void XMLErrorLog_free ( XMLErrorLog_t *  log)

Frees the given XMLError_t structure.

Parameters:
logXMLErrorLog_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.

Parameters:
logXMLErrorLog_t, the error log to be queried.
nunsigned int number of the error to retrieve.
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.

Parameters:
logXMLErrorLog_t, the error log to be queried.
Returns:
the number of errors that have been logged.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines