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 (void) override
 Called when the command processing has been finished. More...
 
const AStringGetAccum (void) 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 Out (const char *a_Fmt, fmt::ArgList)
 Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline". More...
 
virtual ~cCommandOutputCallback ()
 

Protected Attributes

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

Private Types

typedef cCommandOutputCallback super
 

Detailed Description

Accumulates all command output into a string.

Definition at line 50 of file CommandOutput.h.

Member Typedef Documentation

Definition at line 53 of file CommandOutput.h.

Member Function Documentation

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

const AString& cStringAccumCommandOutputCallback::GetAccum ( void  ) const
inline

Returns the accumulated command output in a string.

Definition at line 61 of file CommandOutput.h.

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 30 of file CommandOutput.cpp.

Member Data Documentation

AString cStringAccumCommandOutputCallback::m_Accum
protected

Output is stored here until the command finishes processing.

Definition at line 65 of file CommandOutput.h.


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