G
Gabriel Schreiber
Hy
I need some help on this problem:
I want to send some output to a number of streams. So I need an object,
that behaves (or is) like an std:stream. (additional wish: the object
is an ostream or derived from an ostream.) And I need the data you give
to the ostream-like object to be written to a varying number of
ostreams.
Is it possible to do this with some magic with the streambuffers, or do
I have to write my own class?
TIA
Gabriel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gabriel Akira Schreiber /"\
(e-mail address removed) \ / ASCII Ribbon Campaign
X against HTML eMail &
/ \ gratuitous graphics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wenn sie dich dazu bringen, falsche Fragen zu stellen,
müssen sie sich um die Antworten keine Sorgen machen.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I need some help on this problem:
I want to send some output to a number of streams. So I need an object,
that behaves (or is) like an std:stream. (additional wish: the object
is an ostream or derived from an ostream.) And I need the data you give
to the ostream-like object to be written to a varying number of
ostreams.
Is it possible to do this with some magic with the streambuffers, or do
I have to write my own class?
TIA
Gabriel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gabriel Akira Schreiber /"\
(e-mail address removed) \ / ASCII Ribbon Campaign
X against HTML eMail &
/ \ gratuitous graphics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wenn sie dich dazu bringen, falsche Fragen zu stellen,
müssen sie sich um die Antworten keine Sorgen machen.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~