Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-08-24 23:11:45


"Darren Cook" <darren_at_[hidden]> wrote in message
news:412BCACE.70300_at_dcook.org...

> I need to indent a 2d output sometimes (e.g. in trace logs to show
the depth
> of recursion) but that requires a prefix to each line so is a
different kind
> of problem.

Larry Evans wrote a stream buffer to handle indentation. There appears
to be a fairly recently modified version in the sandbox under
boost/io/filters, but there is no documentation.

If you like, I'll try to post an OutputFilter which manages
indententation, but I'm not sure what your requirements are. What
interface would you like?

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk