19 #ifndef __CONSOLEOUT_H__ 20 #define __CONSOLEOUT_H__ 24 #include <csutil/csstring.h> 68 const char *arg, ...);
75 const char *arg, va_list args);
82 static void SetOutputFile (
const char* filename,
bool append);
113 static void SetPrompt(
const char*format, ...);
130 #define CPrintf ConsoleOut::Intern_Printf 131 #define CVPrintf ConsoleOut::Intern_VPrintf 132 #define CPrintfLog ConsoleOut::Intern_Printf_LogOnly 133 #define CVPrintfLog ConsoleOut::Intern_VPrintf_LogOnly 134 #define CShift ConsoleOut::Shift 135 #define CUnshift ConsoleOut::Unshift 136 #define CPrompt ConsoleOut::SetPrompt
static void Intern_Printf(ConsoleOutMsgClass con, const char *arg,...)
Used to print things to the console.
static bool atStartOfLine
static void SetMaximumOutputClassFile(ConsoleOutMsgClass con)
Set the maximum message class that we want to show on the output file.
static bool promptDisplayed
static void SetMaximumOutputClassStdout(ConsoleOutMsgClass con)
Set the maximum message class that we want to show on standard output.
static void Intern_VPrintf_LogOnly(ConsoleOutMsgClass con, const char *arg, va_list args)
Used to print things to the console.
static ConsoleOutMsgClass GetMaximumOutputClassStdout()
static ConsoleOutMsgClass GetMaximumOutputClassFile()
static void Intern_Printf_LogOnly(ConsoleOutMsgClass con, const char *arg,...)
Used to print things to the console.
Simple static class for controlled user output.
static void SetStringBuffer(csString *buffer)
Set or clear the string buffer.
static void SetOutputFile(const char *filename, bool append)
Setup the console to additionally write to some file instead of only stdout.
static void SetPrompt(const char *format,...)
Set the prompt to be used for stdout.
ConsoleOutMsgClass
Different message classes.
static void Intern_VPrintf(ConsoleOutMsgClass con, const char *arg, va_list ap)
Used to print things to the console.
static csString * strBuffer