Re: pseudo-specs for a String class

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Mon, 01 Sep 2008 16:32:14 -0600

On Mon, 2008-09-01 at 13:19 +1200, Amos Jeffries wrote:
> > On sön, 2008-08-31 at 14:07 +0200, Kinkie wrote:
> >
> >> Now I'm a bit at a loss as to how to best integrate with iostream.
> >
> > For what?
> >
> > We need to be able to dump the contents in debugs which is easily
> > implemented as an << operator using the already defined interface. What
> > other uses of iostream do we have in relation to KBuf?
>
> Dumping to cache manager buffer sstream. Though IIRC that uses a MemBuf or
> something as a back-end anyway and should be re-worked to suit the KBuf
> writing improvements.

Dumping to any stream does not require the kind of integration with the
iostream APIs that Kinkie was worried about. It requires a

        void KBuf::dump(iostream &os) const;

method or alike and Kinkie already has that.

Alex.
Received on Mon Sep 01 2008 - 22:32:36 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 02 2008 - 12:00:02 MDT