writeto.h
Some WriteTo filter constructors also take a parameter of type
WriteTo::Mode
that specifies whether the WriteTo filter appends
its input to the contents of the specified destination or overwrites the
specified destination`s contents with its input.
WriteTo::string(String &dest, WriteTo::Mode outputMode)
-
outputs its input unchanged and writes its input to dest
according to outputMode
WriteTo::file(const String &pathname, WriteTo::Mode outputMode)
-
outputs its input unchanged and writes its input to the file specified by
pathname according to outputMode
WriteTo::stream(ostream &out)
- outputs its input unchanged
and writes its input to the ostream out
WriteTo::nothing()
- outputs its input unchanged; it is not
output to any other destination
WriteTo(const WriteTo &f)
- copy constructor