iv::TextDebugView Class Referenceabstract

#include <TextDebugView.hpp>

Public Member Functions

 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)
 
Contextcontext () const
 

Protected Member Functions

virtual void print_line (const char *prefix, const char *line, const char *postfix)=0
 
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...
 

Friends

class tdc_streambuf
 

Detailed Description

Definition at line 14 of file TextDebugView.hpp.

Constructor & Destructor Documentation

◆ TextDebugView()

iv::TextDebugView::TextDebugView ( Context context)

Definition at line 7 of file TextDebugView.cpp.

Member Function Documentation

◆ out()

std::ostream & iv::TextDebugView::out ( )

Definition at line 17 of file TextDebugView.cpp.

◆ prefix_push()

void iv::TextDebugView::prefix_push ( const char *  pref)

Definition at line 40 of file TextDebugView.cpp.

◆ prefix_push_align()

void iv::TextDebugView::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).

Definition at line 45 of file TextDebugView.cpp.

◆ prefix_pop()

void iv::TextDebugView::prefix_pop ( )

Definition at line 68 of file TextDebugView.cpp.

◆ postfix_push()

void iv::TextDebugView::postfix_push ( const char *  postf)

Definition at line 78 of file TextDebugView.cpp.

◆ postfix_pop()

void iv::TextDebugView::postfix_pop ( )

Definition at line 83 of file TextDebugView.cpp.

◆ print_line()

virtual void iv::TextDebugView::print_line ( const char *  prefix,
const char *  line,
const char *  postfix 
)
protectedpure virtual

◆ endline()

void iv::TextDebugView::endline ( )
protected

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.

Definition at line 93 of file TextDebugView.cpp.

Friends And Related Function Documentation

◆ tdc_streambuf

friend class tdc_streambuf
friend

Definition at line 57 of file TextDebugView.hpp.


The documentation for this class was generated from the following files: