iv::TreeDebugView Class Reference
#include <TreeDebugView.hpp>
Public Types | |
enum | Style { Style::BoldFramesWeakLinks, Style::WeakFramesWeakLinks } |
enum | BoxStyle { BoxStyle::Solid, BoxStyle::Dotted, BoxStyle::Default = Solid } |
Public Member Functions | |
TreeDebugView (Context *context) | |
void | Push (const char *node_name, BoxStyle box_style=BoxStyle::Default) |
void | Pop () |
void | Separator () |
void | Write (Style style, TextDebugView *target) |
void | Clear () |
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 |
Protected Member Functions | |
virtual void | print_line (const char *prefix, const char *line, const char *postfix) override |
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
Adds automatic tree structuring (using box drawing characters) to TextDebugView interface. It outputs to another TextDebugView.
Definition at line 13 of file TreeDebugView.hpp.
Member Enumeration Documentation
◆ Style
|
strong |
Enumerator | |
---|---|
BoldFramesWeakLinks | |
WeakFramesWeakLinks |
Definition at line 16 of file TreeDebugView.hpp.
◆ BoxStyle
|
strong |
Enumerator | |
---|---|
Solid | |
Dotted | |
Default |
Definition at line 22 of file TreeDebugView.hpp.
Constructor & Destructor Documentation
◆ TreeDebugView()
iv::TreeDebugView::TreeDebugView | ( | Context * | context | ) |
Definition at line 8 of file TreeDebugView.cpp.
Member Function Documentation
◆ Push()
void iv::TreeDebugView::Push | ( | const char * | node_name, |
BoxStyle | box_style = BoxStyle::Default |
||
) |
Definition at line 15 of file TreeDebugView.cpp.
◆ Pop()
void iv::TreeDebugView::Pop | ( | ) |
Definition at line 23 of file TreeDebugView.cpp.
◆ Separator()
void iv::TreeDebugView::Separator | ( | ) |
Definition at line 54 of file TreeDebugView.cpp.
◆ Write()
void iv::TreeDebugView::Write | ( | Style | style, |
TextDebugView * | target | ||
) |
Definition at line 35 of file TreeDebugView.cpp.
◆ Clear()
void iv::TreeDebugView::Clear | ( | ) |
Definition at line 44 of file TreeDebugView.cpp.
◆ print_line()
|
overrideprotectedvirtual |
Implements iv::TextDebugView.
Definition at line 67 of file TreeDebugView.cpp.
The documentation for this class was generated from the following files:
- ivorium_core/DebugView/TreeDebugView.hpp
- ivorium_core/DebugView/TreeDebugView.cpp