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


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

Re: I/O abstract class suggestions

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: I/O abstract class suggestions
Date 2011-06-11 14:59 +1200
Message-ID <95g402FnkjU2@mid.individual.net> (permalink)
References <4e58c83a-eefa-4231-8e7d-506632e14a5f@f31g2000pri.googlegroups.com>

Show all headers | 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