Library: Foundation
Package: Streams
Header: Poco/CountingStream.h
This stream counts all characters and lines going through it. This is useful for lexers and parsers that need to determine the current position in the stream.
Direct Base Classes: CountingIOS, std::istream
All Base Classes: CountingIOS, std::ios, std::istream
Inherited Functions: chars, getCurrentLineNumber, lines, pos, rdbuf, reset, setCurrentLineNumber
CountingInputStream(
std::istream & istr
);
Creates the CountingInputStream and connects it to the given input stream.
Destroys the stream.