Gui::GUIConsole Class Reference

The console window class This class opens a console window when instantiated and redirects the stdio streams to it as long it exists. More...

#include <GuiConsole.h>

Public Member Functions

 GUIConsole (void)
 Constructor. More...
 
const char * Name (void) override
 
void SendLog (const std::string &msg, Base::LogStyle level) override
 Used to send a Log message at the given level. More...
 
virtual ~GUIConsole (void)
 Destructor. More...
 
- Public Member Functions inherited from Base::ILogger
 ILogger ()
 
virtual const char * Name ()
 
virtual void SendLog (const std::string &msg, LogStyle level)=0
 Used to send a Log message at the given level. More...
 
virtual ~ILogger ()=0
 

Static Protected Attributes

static const unsigned int s_nMaxLines
 
static unsigned int s_nRefCount
 

Additional Inherited Members

- Public Attributes inherited from Base::ILogger
bool bErr
 
bool bLog
 
bool bMsg
 
bool bWrn
 

Detailed Description

The console window class This class opens a console window when instantiated and redirects the stdio streams to it as long it exists.

This is for Windows only! After instantiation it automatically registers itself at the FCConsole class and gets all the FCConsoleObserver messages. The class must not used directly! Only the FCConsole class is allowed!

See also
FCConsole
Author
Jürgen Riegel

Constructor & Destructor Documentation

◆ GUIConsole()

GUIConsole::GUIConsole ( void  )

Constructor.

◆ ~GUIConsole()

GUIConsole::~GUIConsole ( void  )
virtual

Destructor.

Member Function Documentation

◆ Name()

const char * Gui::GUIConsole::Name ( void  )
overridevirtual

Reimplemented from Base::ILogger.

◆ SendLog()

void GUIConsole::SendLog ( const std::string &  msg,
Base::LogStyle  level 
)
overridevirtual

Used to send a Log message at the given level.

Implements Base::ILogger.

References Base::Error, Base::Log, Base::Message, and Base::Warning.

Member Data Documentation

◆ s_nMaxLines

const unsigned int Gui::GUIConsole::s_nMaxLines
staticprotected

◆ s_nRefCount

unsigned int Gui::GUIConsole::s_nRefCount
staticprotected

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