![]() |
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 (void) override |
Called when the command processing has been finished. More... | |
const AString & | GetAccum (void) 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... | |
![]() | |
void | Out (const char *a_Fmt, fmt::ArgList) |
Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline". More... | |
virtual | ~cCommandOutputCallback () |
Protected Attributes | |
AString | m_Accum |
Output is stored here until the command finishes processing. More... | |
Private Types | |
typedef cCommandOutputCallback | super |
Accumulates all command output into a string.
Definition at line 50 of file CommandOutput.h.
|
private |
Definition at line 53 of file CommandOutput.h.
|
inlineoverridevirtual |
Called when the command processing has been finished.
Reimplemented from cCommandOutputCallback.
Reimplemented in cLogCommandDeleteSelfOutputCallback, and cLogCommandOutputCallback.
Definition at line 58 of file CommandOutput.h.
|
inline |
Returns the accumulated command output in a string.
Definition at line 61 of file CommandOutput.h.
|
overridevirtual |
Called when the command wants to output anything; may be called multiple times.
Implements cCommandOutputCallback.
Definition at line 30 of file CommandOutput.cpp.
|
protected |
Output is stored here until the command finishes processing.
Definition at line 65 of file CommandOutput.h.