Gui::GUIConsole Class Reference

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

#include <GuiConsole.h>

Inheritance diagram for Gui::GUIConsole:
Base::ConsoleObserver

List of all members.

Public Member Functions

 GUIConsole (void)
 Constructor.
virtual ~GUIConsole (void)
 Destructor.



virtual void Error (const char *sErr)
 get calles when a Error is issued
virtual void Log (const char *sErr)
 get calles when a Log Message is issued
virtual void Message (const char *sMsg)
 get calles when a Message is issued
const char * Name (void)
virtual void Warning (const char *sWarn)
 Observer implementation.

Static Protected Attributes

static const unsigned int s_nMaxLines
static unsigned int s_nRefCount

Detailed Description

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

This is for Windows only! After instanciation it automaticly register itself at the FCConsole class and gets all the FCConsoleObserver massages. The class must not used directly! Only the over the FCConsole class is allowed!

See also:
FCConsole
Author:
Jürgen Riegel

Definition at line 43 of file GuiConsole.h.


Constructor & Destructor Documentation

GUIConsole::GUIConsole ( void   ) 

Constructor.

Definition at line 116 of file GuiConsole.cpp.

GUIConsole::~GUIConsole ( void   )  [virtual]

Destructor.

Definition at line 117 of file GuiConsole.cpp.


Member Function Documentation

void GUIConsole::Error ( const char *   )  [virtual]

get calles when a Error is issued

Implements Base::ConsoleObserver.

Definition at line 120 of file GuiConsole.cpp.

void GUIConsole::Log ( const char *   )  [virtual]

get calles when a Log Message is issued

Reimplemented from Base::ConsoleObserver.

Definition at line 121 of file GuiConsole.cpp.

void GUIConsole::Message ( const char *   )  [virtual]

get calles when a Message is issued

Reimplemented from Base::ConsoleObserver.

Definition at line 118 of file GuiConsole.cpp.

const char* Gui::GUIConsole::Name ( void   )  [inline, virtual]

Reimplemented from Base::ConsoleObserver.

Definition at line 56 of file GuiConsole.h.

void GUIConsole::Warning ( const char *  sWarn  )  [virtual]

Observer implementation.

Reimplemented from Base::ConsoleObserver.

Definition at line 119 of file GuiConsole.cpp.


Member Data Documentation

const unsigned int Gui::GUIConsole::s_nMaxLines [static, protected]

Definition at line 60 of file GuiConsole.h.

unsigned int Gui::GUIConsole::s_nRefCount [static, protected]

Definition at line 61 of file GuiConsole.h.


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

Generated on Wed Nov 23 19:02:00 2011 for FreeCAD by  doxygen 1.6.1