Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Interface for a callback that receives command output The Out() function is called for any output the command has produced. More...
#include <CommandOutput.h>
Public Member Functions | |
virtual void | Finished (void) |
Called when the command processing has been finished. More... | |
void | Out (const char *a_Fmt, fmt::ArgList) |
Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline". More... | |
virtual void | Out (const AString &a_Text)=0 |
Called when the command wants to output anything; may be called multiple times. More... | |
virtual | ~cCommandOutputCallback () |
Interface for a callback that receives command output The Out() function is called for any output the command has produced.
Descendants override that function to provide specific processing of the output.
Definition at line 13 of file CommandOutput.h.
|
inlinevirtual |
Definition at line 16 of file CommandOutput.h.
|
inlinevirtual |
Called when the command processing has been finished.
Reimplemented in cRCONCommandOutput, cLogCommandDeleteSelfOutputCallback, cLogCommandOutputCallback, and cStringAccumCommandOutputCallback.
Definition at line 26 of file CommandOutput.h.
void cCommandOutputCallback::Out | ( | const char * | a_Fmt, |
fmt::ArgList | args | ||
) |
Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline".
Definition at line 16 of file CommandOutput.cpp.
|
pure virtual |
Called when the command wants to output anything; may be called multiple times.
Implemented in cRCONCommandOutput, cStringAccumCommandOutputCallback, and cNullCommandOutputCallback.