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

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 13 of file CommandOutput.h.

Constructor & Destructor Documentation

virtual cCommandOutputCallback::~cCommandOutputCallback ( )
inlinevirtual

Definition at line 16 of file CommandOutput.h.

Member Function Documentation

virtual void cCommandOutputCallback::Finished ( void  )
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.

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.


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