Hi,
Supposing I have three types: class CA, CB and CC, and I need to
implement input/output of these types agains STL ostream/istream. I
know the ussual method would be overloading >> and << operators on
these types, but my problem is even harder. CA, CB, CC each has five
forms of representation ( each has five valid storage format ). So,
how should I resolve this problem in STL? By defining five different
istream/ostream derivations? Or use a single pair of istream/ostream
with help of five manipulators? How?
You help will be higly appreciated!
-
woody


|