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 () |
Called when the command processing has been finished. More... | |
virtual void | Out (const AString &a_Text)=0 |
Called when the command wants to output anything; may be called multiple times. More... | |
void | OutLn (const AString &aText) |
Outputs the specified text, plus a newline. 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 15 of file CommandOutput.h.
|
inlinevirtual |
Definition at line 18 of file CommandOutput.h.
|
inlinevirtual |
Called when the command processing has been finished.
Reimplemented in cRCONCommandOutput, cLogCommandDeleteSelfOutputCallback, cLogCommandOutputCallback, and cStringAccumCommandOutputCallback.
Definition at line 31 of file CommandOutput.h.
|
pure virtual |
Called when the command wants to output anything; may be called multiple times.
Implemented in cRCONCommandOutput, cStringAccumCommandOutputCallback, and cNullCommandOutputCallback.
|
inline |
Outputs the specified text, plus a newline.
Definition at line 24 of file CommandOutput.h.