43 #ifndef SIMPLE_INDENT_HPP 44 #define SIMPLE_INDENT_HPP 52 #define STD_OPENING_CHAR (static_cast<char>(1)) 53 #define STD_CLOSING_CHAR (static_cast<char>(2)) 85 void write_char(std::ostream& os,
const char& c);
unsigned int delta
delta indent space
char closing_char
char that increments the indent space by a delta
char opening_char
char that increments the indent space by a delta
void write_char(std::ostream &os, const char &c)
Write the current char.
void deindent()
Manually reduce the indenting of the code.
~simple_indent()
destructor
simple_indent(char o, char c, unsigned int d)
constructor
void indent()
Manually increase the indenting of the code.
void operator()(std::ostream &os, const std::string &str)
pretty print functor
unsigned int indent_spaces
number of spaces used to indent after a new line print
Template definition of refcount.
Very simple pretty printer functor.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
void write_indent(std::ostream &os)
Write the indent spaces.