Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Accumulates all command output into a string. More...
#include <CommandOutput.h>
Public Member Functions | |
virtual void | Finished () override |
Called when the command processing has been finished. More... | |
const AString & | GetAccum () const |
Returns the accumulated command output in a string. More... | |
virtual void | Out (const AString &a_Text) override |
Called when the command wants to output anything; may be called multiple times. More... | |
Public Member Functions inherited from cCommandOutputCallback | |
void | OutLn (const AString &aText) |
Outputs the specified text, plus a newline. More... | |
virtual | ~cCommandOutputCallback () |
Protected Attributes | |
AString | m_Accum |
Output is stored here until the command finishes processing. More... | |
Private Types | |
using | Super = cCommandOutputCallback |
Accumulates all command output into a string.
Definition at line 55 of file CommandOutput.h.
|
private |
Definition at line 58 of file CommandOutput.h.
|
inlineoverridevirtual |
Called when the command processing has been finished.
Reimplemented from cCommandOutputCallback.
Reimplemented in cLogCommandDeleteSelfOutputCallback, and cLogCommandOutputCallback.
Definition at line 64 of file CommandOutput.h.
|
inline |
Returns the accumulated command output in a string.
Definition at line 67 of file CommandOutput.h.
|
overridevirtual |
Called when the command wants to output anything; may be called multiple times.
Implements cCommandOutputCallback.
Definition at line 16 of file CommandOutput.cpp.
|
protected |
Output is stored here until the command finishes processing.
Definition at line 71 of file CommandOutput.h.