iNTERFACEWARE Products Manual > Installing and Using Chameleon > Language API Documentation > C++ Support > CHMoutputLog Interface |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The classes in the demonstration code that Chameleon provides encapsulate where output from the program is logged to. This is done through the usage of the CHMoutputLog parent class. This interface has two virtual functions which must be overridden.
The idea is that the OutputLine method is intended to be overridden to point to the place that output should be logged, while the NewLine() method should give a newline which reflects the nature of the output medium. For instance it might be just a plain '\n' or '\r\n' etc. The Engine object has a NewLine() method which invokes the NewLine() method of the selected CHMoutputLog object.
|