Laxkit
0.0.7.1
|
Class to simplify keeping track of offending objects. More...
Public Member Functions | |
virtual int | AddMessage (const char *desc, int severity, int ninfo=0, int npos=0, int nline=0) |
virtual int | AddMessage (unsigned int objid, const char *objidstr, const char *npath, const char *desc, int severity, int ninfo=0, int npos=0, int nline=0) |
virtual const char * | Message (int i, int *severity, int *info, int *pos=NULL, int *line=NULL) |
virtual int | Total () |
virtual ErrorLogNode * | Message (int i) |
virtual const char * | MessageStr (int i) |
Return message i, or NULL if i out or range. | |
virtual char * | FullMessageStr () |
Return new char[] with all messages, or NULL if there are none. | |
virtual int | Warnings (int since=0) |
Return the number of warnings. | |
virtual int | Errors (int since=0) |
Return the number of failing errors. | |
virtual int | Oks (int since=0) |
Return the number of ok notes. | |
virtual void | Clear () |
Public Attributes | |
Laxkit::PtrStack< ErrorLogNode > | messages |
Protected Member Functions | |
virtual ErrorLogNode * | newErrorLogNode () |
Override if subclassed error logs require extra info in a log message. |
Class to simplify keeping track of offending objects.
This is used by importers and exporters to tag and describe various incompatibilities. It allows one to quickly locate problems.
|
virtual |
Returns number of messages including this one.