Vireo  1.0
Compact runtime for Virtual Instruments
 All Classes Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Vireo::EventLog Class Reference

A Class to collect trace, warning and error events when processing a data set. More...

#include <EventLog.h>

Public Types

enum  EventSeverity {
  kTrace = 0, kWarning = 1, kSoftDataError = 2, kHardDataError = 3,
  kAssertFailure = 4
}
 

Public Member Functions

 EventLog (StringRef stringRef)
 
Int32 TotalErrorCount ()
 
Int32 HardErrorCount ()
 
void LogEventV (EventSeverity severity, Int32 lineNumber, const char *message, va_list args)
 
void LogEvent (EventSeverity severity, Int32 lineNumber, const char *message,...)
 
void LogEventCore (EventSeverity severity, Int32 lineNumber, const char *message)
 

Static Public Attributes

static StringRef DevNull = (StringRef) null
 Special string instance for constructor to skip all messages (counts still tallied)
 
static StringRef StdOut = (StringRef) 1
 Special string instance for constructor to direct messages to stdout.
 

Private Attributes

StringRef _errorLog
 
Int32 _softErrorCount
 
Int32 _hardErrorCount
 
Int32 _warningCount
 

Detailed Description

A Class to collect trace, warning and error events when processing a data set.

Member Enumeration Documentation

Enumerator
kTrace 

Diagnostic trace notice, these are only recorded if tracing is turned on.

kWarning 

An unexpected input was detected and ignored.

kSoftDataError 

An error in the input was detected but the operation can continue in order to dermine if other errors exist.

kHardDataError 

An error in the input was detected and the operation cannot continue.

kAssertFailure 

Internal state of the system has been compromised.


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