#include <CArchConsoleUnix.h>
Inherits IArchConsole.
Inheritance diagram for CArchConsoleUnix:
Public Member Functions | |
CArchConsoleUnix (void *) | |
virtual | ~CArchConsoleUnix () |
virtual void | openConsole (const char *title) |
Open the console. | |
virtual void | closeConsole () |
Close the console. | |
virtual void | showConsole (bool) |
Show the console. | |
virtual void | writeConsole (const char *) |
Write to the console. | |
virtual const char * | getNewlineForConsole () |
Returns the newline sequence for the console. |
Definition at line 23 of file CArchConsoleUnix.h.
void CArchConsoleUnix::closeConsole | ( | ) | [virtual] |
Close the console.
Close the console. Calling this method on an already closed console must have no effect.
Implements IArchConsole.
Definition at line 40 of file CArchConsoleUnix.cpp.
const char * CArchConsoleUnix::getNewlineForConsole | ( | ) | [virtual] |
Returns the newline sequence for the console.
Different consoles use different character sequences for newlines. This method returns the appropriate newline sequence for the console.
Implements IArchConsole.
Definition at line 58 of file CArchConsoleUnix.cpp.
void CArchConsoleUnix::openConsole | ( | const char * | title | ) | [virtual] |
Open the console.
Opens the console for writing. The console is opened automatically on the first write so calling this method is optional. Uses title
for the console's title if appropriate for the architecture. Calling this method on an already open console must have no effect.
Implements IArchConsole.
Definition at line 34 of file CArchConsoleUnix.cpp.
void CArchConsoleUnix::showConsole | ( | bool | ) | [virtual] |
Show the console.
Causes the console to become visible. This generally only makes sense for a console in a graphical user interface. Other implementations will do nothing. Iff showIfEmpty
is false
then the implementation may optionally only show the console if it's not empty.
Implements IArchConsole.
Definition at line 46 of file CArchConsoleUnix.cpp.
void CArchConsoleUnix::writeConsole | ( | const char * | ) | [virtual] |
Write to the console.
Writes the given string to the console, opening it if necessary.
Implements IArchConsole.
Definition at line 52 of file CArchConsoleUnix.cpp.