|
Source-highlight Library
|
Implementation of highlight events that prints debug information. More...
#include <debuglistener.h>


Public Member Functions | |
| DebugListener (std::ostream &_os=std::cout) | |
| virtual void | notify (const HighlightEvent &event) |
| The method called to notify the listener about an event. | |
| void | setInteractive (bool i=true) |
| void | step () |
| Waits for the user to press ENTER (in case of interactive debugging) | |
Private Attributes | |
| std::ostream & | os |
| where to output debug info (default stdout) | |
| bool | interactive |
| whether to act in step mode (wait for the user ENTER after each step) | |
Implementation of highlight events that prints debug information.
In interactive mode, after each event, it will wait for the user to press ENTER to go on.
| srchilite::DebugListener::DebugListener | ( | std::ostream & | _os = std::cout | ) |
| os | the output stream to print debug information (default std::cout) |
|
virtual |
The method called to notify the listener about an event.
This must be implemented by subclasses.
| event | the generated event |
Implements srchilite::HighlightEventListener.