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++ ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
#<strong>in</strong>clude "Poco/UnbufferedStreamBuf.h"<br />
#<strong>in</strong>clude <br />
#<strong>in</strong>clude <br />
class UpperStreamBuf: public UnbufferedStreamBuf<br />
{<br />
public:<br />
UpperStreamBuf(std::o<strong>stream</strong>& ostr): _ostr(ostr)<br />
{<br />
}<br />
protected:<br />
<strong>in</strong>t writeToDevice(char c)<br />
{<br />
_ostr.put(toupper(c));<br />
return charToInt(c);<br />
}<br />
private:<br />
std::o<strong>stream</strong>& _ostr;<br />
};