Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > A design proble...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 43695 of 47561
Post > Topic >>

A design problem associated with STL streams

by Steven Woody <narkewoody@[EMAIL PROTECTED] > Mar 5, 2008 at 05:21 AM

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
 




 9 Posts in Topic:
A design problem associated with STL streams
Steven Woody <narkewoo  2008-03-05 05:21:31 
Re: A design problem associated with STL streams
"Victor Bazarov"  2008-03-05 10:00:21 
Re: A design problem associated with STL streams
dizzy <dizzy@[EMAIL PR  2008-03-05 18:02:31 
Re: A design problem associated with STL streams
Steven Woody <narkewoo  2008-03-05 18:29:30 
Re: A design problem associated with STL streams
James Kanze <james.kan  2008-03-06 02:08:40 
Re: A design problem associated with STL streams
Steven Woody <narkewoo  2008-03-06 17:51:00 
Re: A design problem associated with STL streams
James Kanze <james.kan  2008-03-07 05:24:24 
Re: A design problem associated with STL streams
Steven Woody <narkewoo  2008-03-08 22:31:35 
Re: A design problem associated with STL streams
James Kanze <james.kan  2008-03-09 05:41:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 4:12:50 CDT 2008.