IrrIMGUI
0.3.1
|
Is a stream channel buffer, that adds to each new line a defined prefix. More...
#include <IrrIMGUIDebug.h>
Public Member Functions | |
CChannelBuffer (std::streambuf *pStreamBuffer, char const *pPrefix) | |
Constructor. More... | |
virtual | ~CChannelBuffer (void) |
Destructor. More... | |
void | setupBuffer (std::streambuf *pStreamBuffer, bool NextSymbolOnNewLine) |
Setups a new output buffer. More... | |
void | setupPrefix (char const *pPrefix) |
Setups a new prefix. More... | |
Private Member Functions | |
virtual int | overflow (int Character=EOF) |
Since this is not a real buffer, this method is called for each character that is written to this stream buffer. More... | |
virtual int | sync (void) |
This methods synchronizes the buffer. More... | |
bool | printPrefix (void) |
Prints the prefix. More... | |
Private Attributes | |
char const * | mpPrefix |
The prefix that should be written at the beginning of each new line. More... | |
std::streambuf * | mpBuffer |
The stream buffer where the output should be put in. More... | |
bool | mIsNewLine |
Is true, when the next char should be written to a new line. More... | |
Is a stream channel buffer, that adds to each new line a defined prefix.
Definition at line 56 of file IrrIMGUIDebug.h.
IrrIMGUI::Debug::CChannelBuffer::CChannelBuffer | ( | std::streambuf * | pStreamBuffer, |
char const * | pPrefix | ||
) |
Constructor.
pStreamBuffer | Is a pointer to a stream buffer, where all input data should be written to. |
pPrefix | Is a prefix string that should be added before each new line. |
Definition at line 42 of file CChannelBuffer.cpp.
|
inlinevirtual |
Destructor.
Definition at line 67 of file IrrIMGUIDebug.h.
|
privatevirtual |
Since this is not a real buffer, this method is called for each character that is written to this stream buffer.
Character | Is the character that shall be written. |
Definition at line 63 of file CChannelBuffer.cpp.
|
private |
Prints the prefix.
Definition at line 113 of file CChannelBuffer.cpp.
void IrrIMGUI::Debug::CChannelBuffer::setupBuffer | ( | std::streambuf * | pStreamBuffer, |
bool | NextSymbolOnNewLine | ||
) |
Setups a new output buffer.
pStreamBuffer | Is a pointer to a output buffer. If this pointer is NULL or nullptr, no output is generated anymore. |
NextSymbolOnNewLine | Must be true, when the next symbol should start at a new line. |
Definition at line 50 of file CChannelBuffer.cpp.
void IrrIMGUI::Debug::CChannelBuffer::setupPrefix | ( | char const * | pPrefix | ) |
Setups a new prefix.
pPrefix | Is a prefix string that should be added before each new line. |
Definition at line 57 of file CChannelBuffer.cpp.
|
privatevirtual |
This methods synchronizes the buffer.
Definition at line 98 of file CChannelBuffer.cpp.
|
private |
Is true, when the next char should be written to a new line.
Definition at line 103 of file IrrIMGUIDebug.h.
|
private |
The stream buffer where the output should be put in.
Definition at line 100 of file IrrIMGUIDebug.h.
|
private |
The prefix that should be written at the beginning of each new line.
Definition at line 97 of file IrrIMGUIDebug.h.