class Poco::CountingOutputStream
Overview
This stream counts all characters and lines going through it. Moreā¦
#include <CountingStream.h> class CountingOutputStream: public Poco::CountingIOS, public ostream { public: // construction CountingOutputStream(); CountingOutputStream(std::ostream& ostr); };
Inherited Members
public: // methods int chars() const; int lines() const; int pos() const; void reset(); void setCurrentLineNumber(int line); int getCurrentLineNumber() const; void addChars(int chars); void addLines(int lines); void addPos(int pos); CountingStreamBuf* rdbuf(); protected: // fields CountingStreamBuf _buf;
Detailed Documentation
This stream counts all characters and lines going through it.
Construction
CountingOutputStream()
Creates an unconnected CountingOutputStream.
CountingOutputStream(std::ostream& ostr)
Creates the CountingOutputStream and connects it to the given output stream.