Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | Private Types | List of all members
cStringAccumCommandOutputCallback Class Reference

Accumulates all command output into a string. More...

#include <CommandOutput.h>

Inheritance diagram for cStringAccumCommandOutputCallback:
Inheritance graph
[legend]
Collaboration diagram for cStringAccumCommandOutputCallback:
Collaboration graph
[legend]

Public Member Functions

virtual void Finished () override
 Called when the command processing has been finished. More...
 
const AStringGetAccum () 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...
 
- Public Member Functions inherited from cCommandOutputCallback
void OutLn (const AString &aText)
 Outputs the specified text, plus a newline. More...
 
virtual ~cCommandOutputCallback ()
 

Protected Attributes

AString m_Accum
 Output is stored here until the command finishes processing. More...
 

Private Types

using Super = cCommandOutputCallback
 

Detailed Description

Accumulates all command output into a string.

Definition at line 55 of file CommandOutput.h.

Member Typedef Documentation

◆ Super

Definition at line 58 of file CommandOutput.h.

Member Function Documentation

◆ Finished()

virtual void cStringAccumCommandOutputCallback::Finished ( void  )
inlineoverridevirtual

Called when the command processing has been finished.

Reimplemented from cCommandOutputCallback.

Reimplemented in cLogCommandDeleteSelfOutputCallback, and cLogCommandOutputCallback.

Definition at line 64 of file CommandOutput.h.

◆ GetAccum()

const AString& cStringAccumCommandOutputCallback::GetAccum ( ) const
inline

Returns the accumulated command output in a string.

Definition at line 67 of file CommandOutput.h.

◆ Out()

void cStringAccumCommandOutputCallback::Out ( const AString a_Text)
overridevirtual

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

Implements cCommandOutputCallback.

Definition at line 16 of file CommandOutput.cpp.

Member Data Documentation

◆ m_Accum

AString cStringAccumCommandOutputCallback::m_Accum
protected

Output is stored here until the command finishes processing.

Definition at line 71 of file CommandOutput.h.


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