Drop
Discards the first n lines input to it and outputs the following
lines unchanged.
Header File
drop.h
Description
An instance of this class is a filter object that discards the first
n lines passed to it as input and outputs any following lines
unchanged. The number of lines n to output is specified when the
Drop filter is constructed. If n is zero, no lines are discarded
and all of the lines input to the Drop filter are output unchanged; if there
are fewer than n lines input to a Drop filter then none of the
lines input to it are output.
Constructors
Drop(unsigned int numLines)
- discards the first
numLines lines input to it and outputs any following input
lines unchanged
Drop(const Drop &f)
- copy constructor
Limitations
Known Bugs
Author and Copyright
Author: James MacKay
Last Updated: June 8, 1997
Copyright © 1997 James MacKay