Class Hierarchy   Class Index   Method Index  

CHMoutputLog Class Reference

#include <CHMoutputLog.h>

Inheritance diagram for CHMoutputLog:

CHMcoutOutputLog CHMeditOutputLog

Detailed Description

Abstract class for implementing an output log.

This class forms a useful abstract output interface that can be redirected to a number of different outputs by deriving a child class and implementing the OutputLine method.


Public Member Functions

 CHMoutputLog ()
 Constructor.
virtual ~CHMoutputLog ()
 Destructor.
virtual const CHMchar * NewLine () const
 Get the format of newlines in the log medium.
virtual void OutputLine (const CHMchar *Line)=0
 Output a line to the log; must be overridden by the child class.


Constructor & Destructor Documentation

CHMoutputLog::CHMoutputLog  )  [inline]
 

Constructor.

virtual CHMoutputLog::~CHMoutputLog  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual const CHMchar* CHMoutputLog::NewLine  )  const [virtual]
 

Get the format of newlines in the log medium.

Windows edit controls require a different control sequence from standard output for outputting a newline. This method allows the writer of the child class to specify the newline sequence valid for the log type.

virtual void CHMoutputLog::OutputLine const CHMchar *  Line  )  [pure virtual]
 

Output a line to the log; must be overridden by the child class.

Implemented in CHMcoutOutputLog, and CHMeditOutputLog.


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