ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Public Static Fields | Public Methods | Protected Fields | Protected Methods | List of all members
ReportWriterStdIO Class Reference
Inheritance diagram for ReportWriterStdIO:
[legend]
Collaboration diagram for ReportWriterStdIO:
[legend]

Class Description


The standard ReportWriter writing the message to Console.Error and Console.Out. The global formatter singleton is used is used to process the objects in the report message. This is by default of type FormatterPythonStyle. See Formatter.AcquireDefault for more information.

Public Static Fields

static readonly ReportWriterStdIO Singleton = new ReportWriterStdIO()
 

Public Methods

virtual void NotifyActivation (lang.Phase phase)
 
virtual void Report (Report.Message msg)
 

Protected Fields

AString buffer = new AString()
 

Protected Methods

 ReportWriterStdIO ()
 

Constructor & Destructor Documentation

◆ ReportWriterStdIO()

ReportWriterStdIO ( )
inlineprotected

Protected constructor, only one Singleton might exist.

Member Function Documentation

◆ NotifyActivation()

virtual void NotifyActivation ( lang.Phase  phase)
inlinevirtual

Notify activation/deactivation

Parameters
phaseInformation if activated or deactivated.

Implements ReportWriter.

◆ Report()

virtual void Report ( Report.Message  msg)
inlinevirtual

Just writes the prefix "ALib Report (Error):" (respectively "ALib Report (Warning):" and the error message to the cout.

Parameters
msgThe message to report.

Implements ReportWriter.

Member Data Documentation

◆ buffer

AString buffer = new AString()
protected

Buffer used for formatting messages

◆ Singleton

readonly ReportWriterStdIO Singleton = new ReportWriterStdIO()
static

The singleton which is added in the constructor of Report.


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