43 #ifndef INDENTED_OUTPUT_STREAM_HPP 44 #define INDENTED_OUTPUT_STREAM_HPP 55 #define STD_OPENING_CHAR (static_cast<char>(1)) 56 #define STD_CLOSING_CHAR (static_cast<char>(2)) 138 void WriteFile(
const std::string& file_name);
void WriteFile(const std::string &file_name)
Write the indented output on a file.
void AppendIndent()
Append the indent spaces.
unsigned int delta
delta indent space
IndentedOutputStream(char o='{', char c='}', unsigned int d=3)
constructor
void AppendIndented(const std::string &str)
Append a pre-indented string to the output.
void Indent()
Manually increase the indenting of the code.
char closing_char
char that increments the indent space by a delta
const std::string WriteString()
Write the indented output on a string.
void Append(const std::string &str)
Append a string to the output.
char opening_char
char that increments the indent space by a delta
unsigned int indent_spaces
number of spaces used to indent after a new line print
std::ostringstream output_stream
The actual stream.
~IndentedOutputStream()
destructor
Template definition of refcount.
void AppendChar(const char &c)
Append the current char.
void Deindent()
Manually reduce the indenting of the code.
Class to print indented code.