27.11.2012 Views

Working with the various stream classes in POCO. - POCO C++ ...

Working with the various stream classes in POCO. - POCO C++ ...

Working with the various stream classes in POCO. - POCO C++ ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Splitt<strong>in</strong>g Streams<br />

> Poco::TeeInputStream and Poco::TeeOutputStream copy all<br />

characters go<strong>in</strong>g through <strong>the</strong>m (read or written) to one or more<br />

output <strong>stream</strong>s.<br />

> #<strong>in</strong>clude "Poco/TeeStream.h"<br />

> These <strong>stream</strong>s are quite useful for debugg<strong>in</strong>g purposes.<br />

> void addStream(std::o<strong>stream</strong>& ostr)<br />

adds an output <strong>stream</strong> to a Poco::TeeInputStream or<br />

Poco::TeeOutputStream.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!