#include <common/formatted.h>
Public Members | |
| FormattedText ( int maxline = 80, int the_indent = 4, bool nolinemerge=false) | |
| Create a formatted text object. More... | |
| String | pointer_header (class String, void *) |
| Output a header for a pointer. More... | |
| void | set_use_diff_mode (bool diff) |
| Set (or reset) use of diff mode for pointers diff mode is useful when you want to diff output from different runs. | |
| void | set_special_print_mode (PrintAddress *p) |
| Use your own class for printing pointers. | |
| ~FormattedText () | |
| void | start_block (const String &title) |
| Start and indented block with the given title. | |
| void | set_value (const String &val) |
| set_value - set the value associated with an entry entries can have values or children, not both. | |
| void | set_value (const LString &val) |
| void | set_value (int i) |
| void | set_value (bool b) |
| void | set_value (long l) |
| void | set_value (double d) |
| void | set_value (LString &l) |
| void | set_value (const char *c) |
| void | set_value (const IInteger &v) |
| void | set_value (const void *p) |
| void | end_block () |
| EndBlock - return to previous level. | |
| int | get_indent (int cur,TextBlock *block) const |
| get indentation required for given text. | |
| int | total_len (TextBlock *block) const |
| String | get_value () const |
| get value of text block as a String. | |
| String | get_value (const String cur_pad,const String indent,bool no_newlines,TextBlock *block) const |
Create a formatted text object.
Output a header for a pointer.
Output looks like par1[pointer]=>
Set (or reset) use of diff mode for pointers diff mode is useful when you want to diff output from different runs.
Use your own class for printing pointers.
Start and indented block with the given title.
set_value - set the value associated with an entry entries can have values or children, not both.
EndBlock - return to previous level.
get indentation required for given text.
get value of text block as a String.
written by Dimitri van Heesch, © 1997-1999