M
Marc Schellens
I want to create an object,
which replaces std::cout
all output will be put out to std::cout, but optional
also copied to a file.
But the file output needs to be manipulated:
every new line has to be preceded by a ';'
Is there an easy way to do so?
Or do I have to write wrappers for all kind of
<< operators?
And which functions to overload to scan for '\n'
likje ostr.put(...), any other (ie. are operator<<
using put(...) (always)?)
thanks,
marc
which replaces std::cout
all output will be put out to std::cout, but optional
also copied to a file.
But the file output needs to be manipulated:
every new line has to be preceded by a ';'
Is there an easy way to do so?
Or do I have to write wrappers for all kind of
<< operators?
And which functions to overload to scan for '\n'
likje ostr.put(...), any other (ie. are operator<<
using put(...) (always)?)
thanks,
marc