Prepend
Prepends the specified data to its input and outputs the result.
Header File
prepend.h
Description
An instance of this class is a filter object that outputs the data specified
when the Prepend filter was constructed, then outputs all of the lines input to
it unchanged. Note that if the last line of the data to be prepended doesn`t end
with a newline then the first line of input will be appended to that last line;
that is, no newline will be inserted between the last line of the prepended data
and the first input line.
Constructors
Prepend::string(const String &str)
- prepends str
to its input
Prepend::file(const String &pathname)
- prepends the contents
of the file specified by pathname to its input
Prepend::stream(istream &in)
- prepends all of the data read
from the istream in to its input
Prepend(const Prepend &f)
- copy constructor
Limitations
Known Bugs
Author and Copyright
Author: James MacKay
Last Updated: June 8, 1997
Copyright © 1997 James MacKay