summaryrefslogtreecommitdiffstats
path: root/src/CommandOutput.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
committerMattes D <github@xoft.cz>2015-07-31 16:49:10 +0200
commit6e4122e551eeb41d3e950b363dd837d5586fe560 (patch)
treeb5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/CommandOutput.h
parentMerge pull request #2400 from cuberite/OffloadBadChunks (diff)
downloadcuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.gz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.bz2
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.lz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.xz
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.zst
cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.zip
Diffstat (limited to '')
-rw-r--r--src/CommandOutput.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/CommandOutput.h b/src/CommandOutput.h
index 6265b74ea..0c9641cde 100644
--- a/src/CommandOutput.h
+++ b/src/CommandOutput.h
@@ -9,20 +9,19 @@
/** 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.
-*/
+Descendants override that function to provide specific processing of the output. */
class cCommandOutputCallback
{
public:
virtual ~cCommandOutputCallback() {} // Force a virtual destructor in subclasses
- /// Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline"
+ /** Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline" */
void Out(const char * a_Fmt, ...) FORMATSTRING(2, 3);
- /// Called when the command wants to output anything; may be called multiple times
+ /** Called when the command wants to output anything; may be called multiple times */
virtual void Out(const AString & a_Text) = 0;
- /// Called when the command processing has been finished
+ /** Called when the command processing has been finished */
virtual void Finished(void) {}
} ;
@@ -30,7 +29,7 @@ public:
-/// Class that discards all command output
+/** Class that discards all command output */
class cNullCommandOutputCallback :
public cCommandOutputCallback
{
@@ -70,7 +69,7 @@ protected:
-/// Sends all command output to a log, line by line, when the command finishes processing
+/** Sends all command output to a log, line by line, when the command finishes processing */
class cLogCommandOutputCallback :
public cStringAccumCommandOutputCallback
{
@@ -83,7 +82,7 @@ public:
-/// Sends all command output to a log, line by line; deletes self when command finishes processing
+/** Sends all command output to a log, line by line; deletes self when command finishes processing */
class cLogCommandDeleteSelfOutputCallback :
public cLogCommandOutputCallback
{