#include <vul_redirector.h>
To implement your own, derive a class from vul_redirector, and implement `putchunk'.
Definition at line 26 of file vul_redirector.h.
Public Member Functions | |
| vul_redirector (vcl_ostream &s) | |
| Attach redirector to vcl_ostream s, so that all future output to s goes through this->putchunk. | |
| virtual | ~vul_redirector () |
| Destroy redirector, restore stream to original. | |
| virtual int | putchunk (char const *buf, int n) |
| The filter function. | |
Protected Member Functions | |
| int | put_passthru (char const *buf, int n) |
| Put characters to original stream. | |
| int | sync_passthru () |
| Sync original stream. | |
Private Attributes | |
| vul_redirector_data * | p |
|
|
Attach redirector to vcl_ostream s, so that all future output to s goes through this->putchunk.
Definition at line 97 of file vul_redirector.cxx. |
|
|
Destroy redirector, restore stream to original.
Definition at line 112 of file vul_redirector.cxx. |
|
||||||||||||
|
Put characters to original stream. Useful for derived classes which wish to filter a stream. Definition at line 140 of file vul_redirector.cxx. |
|
||||||||||||
|
The filter function. Called with `n' characters in `buf', do with as you like. Definition at line 146 of file vul_redirector.cxx. |
|
|
Sync original stream.
Definition at line 125 of file vul_redirector.cxx. |
|
|
Definition at line 48 of file vul_redirector.h. |
1.4.4