29#include <sbml/xml/XMLError.h>
30#include <sbml/xml/XMLErrorLog.h>
36LIBNUML_CPP_NAMESPACE_BEGIN
130 const unsigned int errorId = 0
133 ,
const std::string& details =
""
134 ,
const unsigned int line = 0
135 ,
const unsigned int column = 0
155 void add (
const std::list<NUMLError>& errors);
166 void remove (
const unsigned int errorId);
171LIBNUML_CPP_NAMESPACE_END
@ LIBNUML_SEV_ERROR
Definition NUMLError.h:203
@ LIBNUML_CAT_NUML
General NUML error not falling into another category below.
Definition NUMLError.h:149
LIBNUML_CPP_NAMESPACE_BEGIN const unsigned int NUML_DEFAULT_LEVEL
Definition NUMLNamespaces.h:41
const unsigned int NUML_DEFAULT_VERSION
Definition NUMLNamespaces.h:42
contains all error information collected
Definition NUMLError.h:235
void logError(const unsigned int errorId=0, const unsigned int level=NUML_DEFAULT_LEVEL, const unsigned int version=NUML_DEFAULT_VERSION, const std::string &details="", const unsigned int line=0, const unsigned int column=0, const unsigned int severity=LIBNUML_SEV_ERROR, const unsigned int category=LIBNUML_CAT_NUML)
Convenience function that combines creating an NUMLError object and adding it to the log.
Definition NUMLErrorLog.cpp:86
unsigned int getNumFailsWithSeverity(unsigned int severity)
Returns the number of errors that have been logged with the given severity code.
Definition NUMLErrorLog.cpp:210
NUMLErrorLog()
Creates a new, empty NUMLErrorLog.
Definition NUMLErrorLog.cpp:40
const NUMLError * getError(unsigned int n) const
Returns the nth NUMLError in this log.
Definition NUMLErrorLog.cpp:233
void remove(const unsigned int errorId)
Removes an error having errorId from the NUMLError list.
Definition NUMLErrorLog.cpp:157
void add(const NUMLError &error)
Adds the given NUMLError to the log.
Definition NUMLErrorLog.cpp:106
#define LIBNUML_EXTERN
Begin svn Header.
Definition extern.h:104