iv::Ostream_TextDebugView Class Reference
#include <Ostream_TextDebugView.hpp>
Public Member Functions | |
Ostream_TextDebugView (Context *context, std::ostream *out) | |
virtual void | print_line (const char *prefix, const char *line, const char *postfix) override |
Public Member Functions inherited from iv::TextDebugView | |
TextDebugView (Context *context) | |
std::ostream & | out () |
void | prefix_push (const char *pref) |
void | prefix_push_align () |
Pushes prefix that consists of as many spaces as there are characters in current line (minus length of inactive prefixes because they will be applied to next lines but are not applied to this line). More... | |
void | prefix_pop () |
void | postfix_push (const char *postf) |
void | postfix_pop () |
Public Member Functions inherited from iv::DebugView | |
DebugView (Context *context) | |
Context * | context () const |
Additional Inherited Members | |
Protected Member Functions inherited from iv::TextDebugView | |
void | endline () |
What is currently in buffer (TextDebugView::out()) will be written as line. This can be used if the context to which we print changes so we want to print rest of the buffer to previous context even if it is not whole line. More... | |
Detailed Description
TODO - maybe put some max-width here and split lines into segments of that width all using the prefix
- will this work with table output??
Definition at line 15 of file Ostream_TextDebugView.hpp.
Constructor & Destructor Documentation
◆ Ostream_TextDebugView()
iv::Ostream_TextDebugView::Ostream_TextDebugView | ( | Context * | context, |
std::ostream * | out | ||
) |
Definition at line 6 of file Ostream_TextDebugView.cpp.
Member Function Documentation
◆ print_line()
|
overridevirtual |
Implements iv::TextDebugView.
Definition at line 12 of file Ostream_TextDebugView.cpp.
The documentation for this class was generated from the following files:
- ivorium_core/DebugView/Ostream_TextDebugView.hpp
- ivorium_core/DebugView/Ostream_TextDebugView.cpp