#include <ParsingFunctions.h>
Public Member Functions | |
| clStreamBufSwapper (ostream &orig, fstream &replacement) | |
| Constructor. | |
| ~clStreamBufSwapper () | |
| Destructor. | |
Private Attributes | |
| std::streambuf * | buf_ |
| One buffer. | |
| std::ostream & | str_ |
| The other buffer. | |
I stole this from somewhere but I don't remember where.
|
||||||||||||
|
Constructor. Swaps two stream buffers so that the streams write to each other's buffers.
|
|
|
Destructor. Swaps the stream buffers back. |
1.4.6-NO