Larry Evans wrote:
I disagree. The following (almost) line by line translation of your example
to marg_ostream:
As I said, I don't know the details of the implementation, so that was a
speculation based on how I presumed it was implemented.
That's why I like your way; however, in the back of my
Larry Evans wrote:
Wouldn't the following:
*thisiomanip::setw(m_indent.length *
m_indent.level)setfill(fill)fill;
*thissetfill(fill);
do essentially what indentor OutputFileType ::indent() does?
Thanks. I didn't think of that. I'll implement it into the code (with the
correction pointed
Reece Dunn wrote:
Larry Evans wrote:
[snip]
There are two possible ways I see at simplifying your marg_ostream:
[1] Overload string operations only since you only really need to
intercept '\n' characters - this appears to be the simpler of the two
solutions (as there is no real need to overload
Here is the associated code and example program.
-rhd-
mailto:[EMAIL PROTECTED]
_
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browsepgmarket=en-gbXAPID=74DI=1059
indentor.zip
Description: Zip
Larry Evans wrote:
Reece Dunn wrote:
Here is the associated code and example program.
[snip]
marg_ostream. Another indentor implementation is there's no need
The above should be indentor advantage
to defind operator or all the primitive types as was done in
should be to define operator for...
Reece Dunn wrote:
This utility class provides a mechanism for adding
indentation to an I/O
stream. I was wondering who would be interested in it, or if
anyone has
anything similar.
[snip]
I'm very interested in such a functionality, but your attachment seems
to be broken. Could you
Reece Dunn wrote:
This utility class provides a mechanism for adding indentation to an I/O
stream. I was wondering who would be interested in it, or if anyone has
anything similar.
This sounds like marg_ostream. See:
http://aspn.activestate.com/ASPN/Mail/Message/1526216