Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Ohh, stream buf...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 9392 of 10094
Post > Topic >>

Ohh, stream buffer(?) - aka indentation

by "White Wolf" <wolof@[EMAIL PROTECTED] > Mar 18, 2008 at 03:42 AM

Hi All,

I'm back (sort of).  I am thinking about creating a special stream-thing
for
program execution tracing.  Can be good for demonstration and to
understand
why/how an algorithm brings a certain result. (I have made the Rexx PARSER
VAR command work in C++, with the standard algorithm, and sometimes it
brings surprising results.)

One of the many things I would like to sup****t in this tracing stream-like
thing is indentation levels.  So if I enter a function (or print the
content
of a container) I would get the inside 2 spaces indented, and so on, if I
call functions from this one or my container has another container as a
member etc.  So the indentation level grows as I go "inside" and shrinks
as
I go outside.

Since I want my stream to work on top of any existing ostream derivative,
the indentation sup****t should be a "wrapper" of some kind.  And here
comes
the dilemma: wrap what?  Wrap the ostream (pointer)?  Or wrap the stream
buffer?  Is this kind of indentation formatting (so it should go to the
ostream) or something else?

I know many of you guys have working experience in fiddling with standard
streams, so I hope you can point me into the right direction.

TIA,
ww (Attila)


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 10 Posts in Topic:
Ohh, stream buffer(?) - aka indentation
"White Wolf" &l  2008-03-18 03:42:57 
Re: Ohh, stream buffer(?) - aka indentation
Ulrich Eckhardt <eckha  2008-03-18 12:40:28 
Re: Ohh, stream buffer(?) - aka indentation
Larry Evans <cppljevan  2008-03-18 12:40:38 
Re: Ohh, stream buffer(?) - aka indentation
"Stuart Golodetz&quo  2008-03-18 12:46:52 
Re: Ohh, stream buffer(?) - aka indentation
"Stuart Golodetz&quo  2008-03-18 13:12:54 
Re: Ohh, stream buffer(?) - aka indentation
Oncaphillis <oncaphill  2008-03-18 17:15:42 
Re: Ohh, stream buffer(?) - aka indentation
Carl Barron <cbarron41  2008-03-18 23:23:45 
Re: Ohh, stream buffer(?) - aka indentation
Oncaphillis <oncaphill  2008-03-19 13:13:04 
Re: Ohh, stream buffer(?) - aka indentation
Carl Barron <cbarron41  2008-03-19 19:59:36 
Re: Ohh, stream buffer(?) - aka indentation
Oncaphillis <oncaphill  2008-03-20 19:18:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 8:00:42 CDT 2008.