Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6600

Re: I/O abstract class suggestions

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: I/O abstract class suggestions
Date Sat, 11 Jun 2011 14:59:13 +1200
Lines 14
Message-ID <95g402FnkjU2@mid.individual.net> (permalink)
References <4e58c83a-eefa-4231-8e7d-506632e14a5f@f31g2000pri.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net lk1dI53zYiVcZiKD+KEqRAbToowz7iiEXB4neb3YpTBv+ygRBC
Cancel-Lock sha1:ueLk6xdq8RLB55g11ddvfJjcXV0=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <4e58c83a-eefa-4231-8e7d-506632e14a5f@f31g2000pri.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:6600

Show key headers only | View raw


On 06/11/11 02:54 PM, jakash3 wrote:
> I've made In and Out abstract base classes which I plan to have File,
> Socket, and Console classes base some of their methods on. These
> interfaces will have method names like those from the C library as
> well as formatted insertion and extraction streams. Please give
> feedback and suggestions on how I can add to or improve this
> interface.

Why don't you keen the standard iostream objects and create specialised 
streambuf objects?  The streambuf is where the low level, device 
specific IO operations are located.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I/O abstract class suggestions jakash3 <jakashthree@gmail.com> - 2011-06-10 19:54 -0700
  Re: I/O abstract class suggestions Ian Collins <ian-news@hotmail.com> - 2011-06-11 14:59 +1200
    Re: I/O abstract class suggestions jakash3 <jakashthree@gmail.com> - 2011-06-10 20:03 -0700
      Re: I/O abstract class suggestions Ian Collins <ian-news@hotmail.com> - 2011-06-11 16:04 +1200
  Re: I/O abstract class suggestions Paavo Helde <myfirstname@osa.pri.ee> - 2011-06-11 04:06 -0500
    Re: I/O abstract class suggestions jakash3 <jakashthree@gmail.com> - 2011-06-11 12:35 -0700
      Re: I/O abstract class suggestions Paavo Helde <myfirstname@osa.pri.ee> - 2011-06-18 06:35 -0500
    Re: I/O abstract class suggestions Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-12 14:43 +0000

csiph-web