Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cCommandOutputCallback Class Referenceabstract

Interface for a callback that receives command output The Out() function is called for any output the command has produced. More...

#include <CommandOutput.h>

Inheritance diagram for cCommandOutputCallback:
Inheritance graph
[legend]

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~cCommandOutputCallback()

virtual cCommandOutputCallback::~cCommandOutputCallback ( )
inlinevirtual

Definition at line 18 of file CommandOutput.h.

Member Function Documentation

◆ Finished()

virtual void cCommandOutputCallback::Finished ( void  )
inlinevirtual

Called when the command processing has been finished.

Reimplemented in cRCONCommandOutput, cLogCommandDeleteSelfOutputCallback, cLogCommandOutputCallback, and cStringAccumCommandOutputCallback.

Definition at line 31 of file CommandOutput.h.

◆ Out()

virtual void cCommandOutputCallback::Out ( const AString a_Text)
pure virtual

Called when the command wants to output anything; may be called multiple times.

Implemented in cRCONCommandOutput, cStringAccumCommandOutputCallback, and cNullCommandOutputCallback.

◆ OutLn()

void cCommandOutputCallback::OutLn ( const AString aText)
inline

Outputs the specified text, plus a newline.

Definition at line 24 of file CommandOutput.h.


The documentation for this class was generated from the following file: