Laxkit  0.0.7.1
Public Member Functions | Public Attributes | Protected Member Functions
Laxkit::ErrorLog Class Reference

Class to simplify keeping track of offending objects. More...

List of all members.

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 charMessage (int i, int *severity, int *info, int *pos=NULL, int *line=NULL)
virtual int Total ()
virtual ErrorLogNodeMessage (int i)
virtual const charMessageStr (int i)
 Return message i, or NULL if i out or range.
virtual charFullMessageStr ()
 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< ErrorLogNodemessages

Protected Member Functions

virtual ErrorLogNodenewErrorLogNode ()
 Override if subclassed error logs require extra info in a log message.

Detailed Description

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.


Member Function Documentation

int Laxkit::ErrorLog::AddMessage ( unsigned int  objid,
const char objidstr,
const char npath,
const char desc,
int  severity,
int  ninfo = 0,
int  pos = 0,
int  line = 0 
)
virtual

Returns number of messages including this one.


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:52:59, Laxkit