Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #6603
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: I/O abstract class suggestions |
| Date | 2011-06-11 16:04 +1200 |
| Message-ID | <95g7qdFnkjU3@mid.individual.net> (permalink) |
| References | <4e58c83a-eefa-4231-8e7d-506632e14a5f@f31g2000pri.googlegroups.com> <95g402FnkjU2@mid.individual.net> <2bf4596b-162a-492d-b5e9-77c5fc528cb5@e17g2000prj.googlegroups.com> |
On 06/11/11 03:03 PM, jakash3 wrote: > On Jun 10, 7:59 pm, Ian Collins<ian-n...@hotmail.com> wrote: > >> 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. > > You may have a good point, but I'm not very familiar with the C++ > library. Well, I guess you could say that I like to reinvent the > wheel. The streambuf is designed to be derived from, it has appropriate virtual methods (underflow, overflow and sync give you most of what's needed) to support specialisation. Implementing a streambuf to read from a file descriptor is a great learning exercise. -- Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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