[ Lit Window Library at SourceForge ] [ Lit Window Productions Homepage ] [ wxWidgets Tips&Tricks ] [ wxVisualSetup ]
Printer.
More...
Public Types | |
| typedef Printer | printer_t |
Public Member Functions | |
| void | insert (std::ostream &where) |
| Insert the redirector into a stream. | |
| void | remove () |
| Remove the redirector from the stream. | |
| void | set_linewise (bool enabled=true) |
| Set or clear the linewise flag. | |
| void | set_passthrough (bool enabled=true) |
| Set or clear the passthrough flag. | |
| template_redirect_streambuf (printer_t _printer) | |
| virtual | ~template_redirect_streambuf () |
Protected Member Functions | |
| virtual int | overflow (int _Meta) |
Protected Attributes | |
| std::string | m_line |
| bool | m_linewise |
| std::streambuf * | m_original_stream |
| bool | m_passthrough |
| printer_t | m_printer |
| std::ostream * | m_redirected_ios |
linewise If true (default), waits until EOL or EOF has been written to the stream before sending the output to Printer. If false, calls Printer for every character written to the stream.passthrough If true (default), sends all characters to the original stream as well. If false, sends characters to Printer only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright 2004, Hajo Kirchhoff, Lit Window Productions